ASN1_item_unpack_ex

Decode DER from an ASN1_STRING using it, with library context for algorithm fetches.

Synopsis

Declared in <openssl/asn1.h>

void*
ASN1_item_unpack_ex(
    ASN1_STRING const* oct,
    ASN1_ITEM const* it,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

Newly allocated typed value, or NULL on error; free with ASN1_item_free.

Parameters

NameDescription
octString whose content octets are treated as DER input.
itASN.1 item descriptor for the type to decode.
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query for algorithm fetches, or NULL.