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