Decode an ASN.1 value from a FILE using allocator and d2i callbacks.
Declared in <openssl/asn1.h>
void*
ASN1_d2i_fp(
void*(* xnew)(),
d2i_of_void* d2i,
FILE* in,
void** x);
Decoded object pointer, or NULL on error.
| Name | Description |
|---|---|
| xnew | Allocator returning a new empty object (for example TYPE_new). |
| d2i | Decoder of type d2i_of_void that parses DER into the object. |
| in | Input FILE positioned at DER (or BER) encoding. |
| x | Optional destination pointer updated to the decoded object, or NULL. |