5 ASN1_item_new_ex, ASN1_item_new
6 - create new ASN.1 values
10 #include <openssl/asn1.h>
12 ASN1_VALUE *ASN1_item_new_ex(const ASN1_ITEM *it, OSSL_LIB_CTX *libctx,
14 ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it);
18 ASN1_item_new_ex() creates a new B<ASN1_VALUE> structure based on the
19 B<ASN1_ITEM> template given in the I<it> parameter. If any algorithm fetches are
20 required during the process then they will use the B<OSSL_LIB_CTX> provided in
21 the I<libctx> parameter and the property query string in I<propq>. See
22 L<crypto(7)/ALGORITHM FETCHING> for more information about algorithm fetching.
24 ASN1_item_new() is the same as ASN1_item_new_ex() except that the default
25 B<OSSL_LIB_CTX> is used (i.e. NULL) and with a NULL property query string.
29 ASN1_item_new_ex() and ASN1_item_new() return a pointer to the newly created
30 B<ASN1_VALUE> or NULL on error.
34 The function ASN1_item_new_ex() was added in OpenSSL 3.0.
38 Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
40 Licensed under the Apache License 2.0 (the "License"). You may not use
41 this file except in compliance with the License. You can obtain a copy
42 in the file LICENSE in the source distribution or at
43 L<https://www.openssl.org/source/license.html>.