Decode a DER-encoded ASN.1 value using an item descriptor (default library context).
Declared in <openssl/asn1.h>
ASN1_VALUE*
ASN1_item_d2i(
ASN1_VALUE** val,
unsigned char const** in,
long len,
ASN1_ITEM const* it);
Equivalent to ASN1_item_d2i_ex() with a NULL library context and property query.
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. |