X509_NAME_get_index_by_NID function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<X509_NAME>, Int, Int)>(ffi.Pointer<X509_NAME>, ffi.Int, ffi.Int)>(symbol: 'bssl_dart_X509_NAME_get_index_by_NID')
int X509_NAME_get_index_by_NID(
  1. Pointer<X509_NAME> name,
  2. int nid,
  3. int lastpos
)

X509_NAME_get_index_by_NID returns the zero-based index of the first attribute in |name| with type |nid|, or -1 if there is none. |nid| should be one of the |NID_*| constants. If |lastpos| is non-negative, it begins searching at |lastpos+1|. To search all attributes, pass in -1, not zero.

Indices from this function refer to |X509_NAME|'s flattened representation.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<X509_NAME>, ffi.Int, ffi.Int)>(
  symbol: 'bssl_dart_X509_NAME_get_index_by_NID',
)
external int X509_NAME_get_index_by_NID(
  ffi.Pointer<X509_NAME> name,
  int nid,
  int lastpos,
);