GENERAL_NAME_get0_value function

  1. @RecordUse.new()
  2. @Native<Pointer<Void> Function(Pointer<GENERAL_NAME> gen, Pointer<Int> out_type)>(ffi.Pointer<GENERAL_NAME>, ffi.Pointer<ffi.Int>)>(symbol: 'bssl_dart_GENERAL_NAME_get0_value')
Pointer<Void> GENERAL_NAME_get0_value(
  1. Pointer<GENERAL_NAME> gen,
  2. Pointer<Int> out_type
)

GENERAL_NAME_get0_value returns the in-memory representation of gen's contents and, out_type is not NULL, sets *out_type to the type of gen, which will be a GEN_* constant. If gen is incomplete, the return value will be NULL and the type will be -1.

WARNING: Casting the result of this function to the wrong type is a potentially exploitable memory error. Callers must check gen's type, either via *out_type or checking gen->type directly, before inspecting the result.

WARNING: This function is not const-correct. The return value should be const. Callers should not mutate the returned object.

Implementation

@meta.RecordUse()
@ffi.Native<
  ffi.Pointer<ffi.Void> Function(
    ffi.Pointer<GENERAL_NAME>,
    ffi.Pointer<ffi.Int>,
  )
>(symbol: 'bssl_dart_GENERAL_NAME_get0_value')
external ffi.Pointer<ffi.Void> GENERAL_NAME_get0_value(
  ffi.Pointer<GENERAL_NAME> gen,
  ffi.Pointer<ffi.Int> out_type,
);