c2i_ASN1_OBJECT function

  1. @RecordUse.new()
  2. @Native<Pointer<ASN1_OBJECT> Function(Pointer<Pointer<ASN1_OBJECT>>, Pointer<Pointer<Uint8>>, Long)>(ffi.Pointer<ffi.Pointer<ASN1_OBJECT>>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>, ffi.Long)>(symbol: 'bssl_dart_c2i_ASN1_OBJECT')
Pointer<ASN1_OBJECT> c2i_ASN1_OBJECT(
  1. Pointer<Pointer<ASN1_OBJECT>> out,
  2. Pointer<Pointer<Uint8>> inp,
  3. int len
)

c2i_ASN1_OBJECT decodes |len| bytes from |*inp| as the contents of a DER-encoded OBJECT IDENTIFIER, excluding the tag and length. It behaves like |d2i_SAMPLE| except, on success, it always consumes all |len| bytes.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<ASN1_OBJECT> Function(
    ffi.Pointer<ffi.Pointer<ASN1_OBJECT>>,
    ffi.Pointer<ffi.Pointer<ffi.Uint8>>,
    ffi.Long,
  )
>(symbol: 'bssl_dart_c2i_ASN1_OBJECT')
external ffi.Pointer<ASN1_OBJECT> c2i_ASN1_OBJECT(
  ffi.Pointer<ffi.Pointer<ASN1_OBJECT>> out,
  ffi.Pointer<ffi.Pointer<ffi.Uint8>> inp,
  int len,
);