CBB_add_asn1_element function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBB>, CBS_ASN1_TAG, Pointer<Uint8>, Size)>(ffi.Pointer<CBB>, CBS_ASN1_TAG, ffi.Pointer<ffi.Uint8>, ffi.Size)>(symbol: 'bssl_dart_CBB_add_asn1_element')
int CBB_add_asn1_element(
  1. Pointer<CBB> cbb,
  2. int tag,
  3. Pointer<Uint8> data,
  4. int data_len,
)

CBB_add_asn1_element adds an ASN.1 element with the specified tag and contents. It returns one on success and zero on error. This is a convenience function over |CBB_add_asn1| when the data is already available.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<CBB>,
    CBS_ASN1_TAG,
    ffi.Pointer<ffi.Uint8>,
    ffi.Size,
  )
>(symbol: 'bssl_dart_CBB_add_asn1_element')
external int CBB_add_asn1_element(
  ffi.Pointer<CBB> cbb,
  int tag,
  ffi.Pointer<ffi.Uint8> data,
  int data_len,
);