X509_NAME_ENTRY_create_by_OBJ function

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

X509_NAME_ENTRY_create_by_OBJ creates a new |X509_NAME_ENTRY| with attribute type |obj|. The attribute value is determined from |type|, |bytes|, and |len| as in |X509_NAME_ENTRY_set_data|. It returns the |X509_NAME_ENTRY| on success and NULL on error.

If |out| is non-NULL and |*out| is NULL, it additionally sets |*out| to the result on success. If both |out| and |*out| are non-NULL, it updates the object at |*out| instead of allocating a new one.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<X509_NAME_ENTRY> Function(
    ffi.Pointer<ffi.Pointer<X509_NAME_ENTRY>>,
    ffi.Pointer<ASN1_OBJECT>,
    ffi.Int,
    ffi.Pointer<ffi.Uint8>,
    ossl_ssize_t,
  )
>(symbol: 'bssl_dart_X509_NAME_ENTRY_create_by_OBJ')
external ffi.Pointer<X509_NAME_ENTRY> X509_NAME_ENTRY_create_by_OBJ(
  ffi.Pointer<ffi.Pointer<X509_NAME_ENTRY>> out,
  ffi.Pointer<ASN1_OBJECT> obj,
  int type,
  ffi.Pointer<ffi.Uint8> bytes,
  int len,
);