ERR_error_string_n function

  1. @RecordUse.new()
  2. @Native<Pointer<Char> Function(Uint32, Pointer<Char>, Size)>(ffi.Uint32, ffi.Pointer<ffi.Char>, ffi.Size)>(symbol: 'bssl_dart_ERR_error_string_n')
Pointer<Char> ERR_error_string_n(
  1. int packed_error,
  2. Pointer<Char> buf,
  3. int len
)

ERR_error_string_n generates a human-readable string representing packed_error, places it at buf, and returns buf. It writes at most len bytes (including the terminating NUL) and truncates the string if necessary. If len is greater than zero then buf is always NUL terminated.

The string will have the following format:

error:error code:library name:OPENSSL_internal:reason string

error code is an 8 digit hexadecimal number; library name and reason string are ASCII text.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<ffi.Char> Function(ffi.Uint32, ffi.Pointer<ffi.Char>, ffi.Size)
>(symbol: 'bssl_dart_ERR_error_string_n')
external ffi.Pointer<ffi.Char> ERR_error_string_n(
  int packed_error,
  ffi.Pointer<ffi.Char> buf,
  int len,
);