OBJ_obj2txt function
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,
);