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