X509_NAME_ENTRY_create_by_NID function

  1. @RecordUse.new()
  2. @Native<Pointer<X509_NAME_ENTRY> Function(Pointer<Pointer<X509_NAME_ENTRY>>, Int, Int, Pointer<Uint8>, ossl_ssize_t)>(ffi.Pointer<ffi.Pointer<X509_NAME_ENTRY>>, ffi.Int, ffi.Int, ffi.Pointer<ffi.Uint8>, ossl_ssize_t)>(symbol: 'bssl_dart_X509_NAME_ENTRY_create_by_NID')
Pointer<X509_NAME_ENTRY> X509_NAME_ENTRY_create_by_NID(
  1. Pointer<Pointer<X509_NAME_ENTRY>> out,
  2. int nid,
  3. int type,
  4. Pointer<Uint8> bytes,
  5. int len,
)

X509_NAME_ENTRY_create_by_NID behaves like |X509_NAME_ENTRY_create_by_OBJ| except the attribute type is |nid|, which should be one of the |NID_*| constants.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<X509_NAME_ENTRY> Function(
    ffi.Pointer<ffi.Pointer<X509_NAME_ENTRY>>,
    ffi.Int,
    ffi.Int,
    ffi.Pointer<ffi.Uint8>,
    ossl_ssize_t,
  )
>(symbol: 'bssl_dart_X509_NAME_ENTRY_create_by_NID')
external ffi.Pointer<X509_NAME_ENTRY> X509_NAME_ENTRY_create_by_NID(
  ffi.Pointer<ffi.Pointer<X509_NAME_ENTRY>> out,
  int nid,
  int type,
  ffi.Pointer<ffi.Uint8> bytes,
  int len,
);