X509_dup function

  1. @RecordUse.new()
  2. @Native<Pointer<X509> Function(Pointer<X509> x509)>(ffi.Pointer<X509>)>(symbol: 'bssl_dart_X509_dup')
Pointer<X509> X509_dup(
  1. Pointer<X509> x509
)

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