X509_dup function
X509_dup returns a newly-allocated copy of |x509|, or NULL on error. This function works by serializing the structure, so auxiliary properties (see |i2d_X509_AUX|) are not preserved. Additionally, if |x509| is incomplete, this function may fail.
Implementation
@meta.RecordUse()
@ffi.Native<ffi.Pointer<X509> Function(ffi.Pointer<X509>)>(
symbol: 'bssl_dart_X509_dup',
)
external ffi.Pointer<X509> X509_dup(
ffi.Pointer<X509> x509,
);