CBS_get_asn1 function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<CBS>, Pointer<CBS>, CBS_ASN1_TAG)>(ffi.Pointer<CBS>, ffi.Pointer<CBS>, CBS_ASN1_TAG)>(symbol: 'bssl_dart_CBS_get_asn1')
int CBS_get_asn1(
  1. Pointer<CBS> cbs,
  2. Pointer<CBS> out,
  3. int tag_value
)

CBS_get_asn1 sets |*out| to the contents of DER-encoded, ASN.1 element (not including tag and length bytes) and advances |cbs| over it. The ASN.1 element must match |tag_value|. It returns one on success and zero on error.

Implementation

@meta.RecordUse()
@ffi.Native<ffi.Int Function(ffi.Pointer<CBS>, ffi.Pointer<CBS>, CBS_ASN1_TAG)>(
  symbol: 'bssl_dart_CBS_get_asn1',
)
external int CBS_get_asn1(
  ffi.Pointer<CBS> cbs,
  ffi.Pointer<CBS> out,
  int tag_value,
);