Set an ASN1_TYPE to type, storing a copy of value (unlike ASN1_TYPE_set).
Declared in <openssl/asn1.h>
int
ASN1_TYPE_set1(
ASN1_TYPE* a,
int type,
void const* value);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| a | Destination ANY/CHOICE container to update. |
| type | ASN.1 type tag (V_ASN1_*); for V_ASN1_BOOLEAN, value may be NULL to mean FALSE. |
| value | Pointer to the typed value to copy, or NULL where the type allows it. |