ASN1_TYPE_set

Set an ASN1_TYPE to type, taking ownership of value (no copy).

Synopsis

Declared in <openssl/asn1.h>

void
ASN1_TYPE_set(
    ASN1_TYPE* a,
    int type,
    void* value);

Parameters

NameDescription
aDestination ANY/CHOICE container to update.
typeASN.1 type tag (V_ASN1_*); for V_ASN1_BOOLEAN, value may be NULL to mean FALSE.
valuePointer to the typed value transferred into a, or NULL where the type allows it.