GENERAL_NAME_get0_otherName function

  1. @RecordUse.new()
  2. @Native<Int Function(Pointer<GENERAL_NAME>, Pointer<Pointer<ASN1_OBJECT>>, Pointer<Pointer<ASN1_TYPE>>)>(ffi.Pointer<GENERAL_NAME>, ffi.Pointer<ffi.Pointer<ASN1_OBJECT>>, ffi.Pointer<ffi.Pointer<ASN1_TYPE>>)>(symbol: 'bssl_dart_GENERAL_NAME_get0_otherName')
int GENERAL_NAME_get0_otherName(
  1. Pointer<GENERAL_NAME> gen,
  2. Pointer<Pointer<ASN1_OBJECT>> out_oid,
  3. Pointer<Pointer<ASN1_TYPE>> out_value
)

GENERAL_NAME_get0_otherName, if |gen| is an OtherName, sets |*out_oid| and |*out_value| to the OtherName's type-id and value, respectively, and returns one. If |gen| is not an OtherName, it returns zero and leaves |*out_oid| and |*out_value| unmodified. Either of |out_oid| or |out_value| may be NULL to ignore the value.

WARNING: This function is not const-correct. |out_oid| and |out_value| are not const, but callers should not mutate the resulting objects.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<GENERAL_NAME>,
    ffi.Pointer<ffi.Pointer<ASN1_OBJECT>>,
    ffi.Pointer<ffi.Pointer<ASN1_TYPE>>,
  )
>(symbol: 'bssl_dart_GENERAL_NAME_get0_otherName')
external int GENERAL_NAME_get0_otherName(
  ffi.Pointer<GENERAL_NAME> gen,
  ffi.Pointer<ffi.Pointer<ASN1_OBJECT>> out_oid,
  ffi.Pointer<ffi.Pointer<ASN1_TYPE>> out_value,
);