OBJ_obj2txt function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<Char>, Int, Pointer<ASN1_OBJECT>, Int)>(ffi.Pointer<ffi.Char>, ffi.Int, ffi.Pointer<ASN1_OBJECT>, ffi.Int)>(symbol: 'bssl_dart_OBJ_obj2txt')
int OBJ_obj2txt(
  1. Pointer<Char> out,
  2. int out_len,
  3. Pointer<ASN1_OBJECT> obj,
  4. int always_return_oid,
)

OBJ_obj2txt converts obj to a textual representation. If always_return_oid is zero then obj will be matched against known objects and the long (preferably) or short name will be used if found. Otherwise obj will be converted into a dotted sequence of integers. If out is not NULL, then at most out_len bytes of the textual form will be written there. If out_len is at least one, then string written to out will always be NUL terminated. It returns the number of characters that could have been written, not including the final NUL, or -1 on error.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<ffi.Char>,
    ffi.Int,
    ffi.Pointer<ASN1_OBJECT>,
    ffi.Int,
  )
>(symbol: 'bssl_dart_OBJ_obj2txt')
external int OBJ_obj2txt(
  ffi.Pointer<ffi.Char> out,
  int out_len,
  ffi.Pointer<ASN1_OBJECT> obj,
  int always_return_oid,
);