X509_get_ext function

  1. @RecordUse.new()
  2. @Native<Pointer<X509_EXTENSION> Function(Pointer<X509>, Int)>(ffi.Pointer<X509>, ffi.Int)>(symbol: 'bssl_dart_X509_get_ext')
Pointer<X509_EXTENSION> X509_get_ext(
  1. Pointer<X509> x,
  2. int loc
)

X509_get_ext returns the extension in |x| at index |loc|, or NULL if |loc| is out of bounds. This function returns a non-const pointer for OpenSSL compatibility, but callers should not mutate the result.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Pointer<X509_EXTENSION> Function(ffi.Pointer<X509>, ffi.Int)>(
  symbol: 'bssl_dart_X509_get_ext',
)
external ffi.Pointer<X509_EXTENSION> X509_get_ext(
  ffi.Pointer<X509> x,
  int loc,
);