ASN1_item_new_ex

Allocate a new ASN.1 value described by it, with library context for algorithm fetches.

Synopsis

Declared in <openssl/asn1.h>

ASN1_VALUE*
ASN1_item_new_ex(
    ASN1_ITEM const* it,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

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

Parameters

NameDescription
itASN.1 item template for the type to create.
libctxLibrary context for any algorithm fetches during construction, or NULL for the default.
propqProperty query for those fetches, or NULL.