Decode a DER-encoded ASN.1 value using an item descriptor and library context.
Declared in <openssl/asn1.h>
ASN1_VALUE*
ASN1_item_d2i_ex(
ASN1_VALUE** val,
unsigned char const** in,
long len,
ASN1_ITEM const* it,
OSSL_LIB_CTX* libctx,
char const* propq);
Decoded ASN1_VALUE, or NULL on error.
| Name | Description |
|---|---|
| val | Optional destination pointer updated to the result, or NULL. |
| in | Address of a pointer to the DER input; advanced past the decoded value. |
| len | Number of bytes available at *in. |
| it | ASN.1 item descriptor for the type to decode. |
| libctx | Library context for algorithm fetches during decode, or NULL for the default. |
| propq | Property query for algorithm fetches, or NULL. |