i2d_BASIC_CONSTRAINTS function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<BASIC_CONSTRAINTS>, Pointer<Pointer<Uint8>>)>(ffi.Pointer<BASIC_CONSTRAINTS>, ffi.Pointer<ffi.Pointer<ffi.Uint8>>)>(symbol: 'bssl_dart_i2d_BASIC_CONSTRAINTS')
int i2d_BASIC_CONSTRAINTS(
  1. Pointer<BASIC_CONSTRAINTS> bcons,
  2. Pointer<Pointer<Uint8>> outp
)

i2d_BASIC_CONSTRAINTS marshals |bcons| as a DER-encoded BasicConstraints (RFC 5280), as described in |i2d_SAMPLE|.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<BASIC_CONSTRAINTS>,
    ffi.Pointer<ffi.Pointer<ffi.Uint8>>,
  )
>(symbol: 'bssl_dart_i2d_BASIC_CONSTRAINTS')
external int i2d_BASIC_CONSTRAINTS(
  ffi.Pointer<BASIC_CONSTRAINTS> bcons,
  ffi.Pointer<ffi.Pointer<ffi.Uint8>> outp,
);