ASN1_TYPE_set1

Set an ASN1_TYPE to type, storing a copy of value (unlike ASN1_TYPE_set).

Synopsis

Declared in <openssl/asn1.h>

int
ASN1_TYPE_set1(
    ASN1_TYPE* a,
    int type,
    void const* value);

Return Value

1 on success, or 0 on failure.

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 to copy, or NULL where the type allows it.