X509_CRL_get0_by_serial function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<X509_CRL>, Pointer<Pointer<X509_REVOKED>>, Pointer<ASN1_OCTET_STRING>)>(ffi.Pointer<X509_CRL>, ffi.Pointer<ffi.Pointer<X509_REVOKED>>, ffi.Pointer<ASN1_INTEGER>)>(symbol: 'bssl_dart_X509_CRL_get0_by_serial')
int X509_CRL_get0_by_serial(
  1. Pointer<X509_CRL> crl,
  2. Pointer<Pointer<X509_REVOKED>> out,
  3. Pointer<ASN1_OCTET_STRING> serial
)

X509_CRL_get0_by_serial finds the entry in crl whose serial number is serial. If found, it sets *out to the entry and returns one. If not found, it returns zero.

On success, *out continues to be owned by crl. It is an error to free or otherwise modify *out.

TODO(crbug.com/42290473): Ideally crl would be const. It is broadly thread-safe, but changes the order of entries in crl. It cannot be called concurrently with i2d_X509_CRL.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<X509_CRL>,
    ffi.Pointer<ffi.Pointer<X509_REVOKED>>,
    ffi.Pointer<ASN1_INTEGER>,
  )
>(symbol: 'bssl_dart_X509_CRL_get0_by_serial')
external int X509_CRL_get0_by_serial(
  ffi.Pointer<X509_CRL> crl,
  ffi.Pointer<ffi.Pointer<X509_REVOKED>> out,
  ffi.Pointer<ASN1_INTEGER> serial,
);