X509_NAME_get0_der function
X509_NAME_get0_der marshals |name| as a DER-encoded X.509 Name (RFC 5280). On success, it returns one and sets |*out_der| and |*out_der_len| to a buffer containing the result. Otherwise, it returns zero. |*out_der| is owned by |name| and must not be freed by the caller. It is invalidated after |name| is mutated or freed.
Implementation
@meta.RecordUse()
@ffi.Native<
ffi.Int Function(
ffi.Pointer<X509_NAME>,
ffi.Pointer<ffi.Pointer<ffi.Uint8>>,
ffi.Pointer<ffi.Size>,
)
>(symbol: 'bssl_dart_X509_NAME_get0_der')
external int X509_NAME_get0_der(
ffi.Pointer<X509_NAME> name,
ffi.Pointer<ffi.Pointer<ffi.Uint8>> out_der,
ffi.Pointer<ffi.Size> out_der_len,
);