1*b0d17251Schristos=pod 2*b0d17251Schristos 3*b0d17251Schristos=head1 NAME 4*b0d17251Schristos 5*b0d17251SchristosASN1_item_new_ex, ASN1_item_new 6*b0d17251Schristos- create new ASN.1 values 7*b0d17251Schristos 8*b0d17251Schristos=head1 SYNOPSIS 9*b0d17251Schristos 10*b0d17251Schristos #include <openssl/asn1.h> 11*b0d17251Schristos 12*b0d17251Schristos ASN1_VALUE *ASN1_item_new_ex(const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, 13*b0d17251Schristos const char *propq); 14*b0d17251Schristos ASN1_VALUE *ASN1_item_new(const ASN1_ITEM *it); 15*b0d17251Schristos 16*b0d17251Schristos=head1 DESCRIPTION 17*b0d17251Schristos 18*b0d17251SchristosASN1_item_new_ex() creates a new B<ASN1_VALUE> structure based on the 19*b0d17251SchristosB<ASN1_ITEM> template given in the I<it> parameter. If any algorithm fetches are 20*b0d17251Schristosrequired during the process then they will use the B<OSSL_LIB_CTX> provided in 21*b0d17251Schristosthe I<libctx> parameter and the property query string in I<propq>. See 22*b0d17251SchristosL<crypto(7)/ALGORITHM FETCHING> for more information about algorithm fetching. 23*b0d17251Schristos 24*b0d17251SchristosASN1_item_new() is the same as ASN1_item_new_ex() except that the default 25*b0d17251SchristosB<OSSL_LIB_CTX> is used (i.e. NULL) and with a NULL property query string. 26*b0d17251Schristos 27*b0d17251Schristos=head1 RETURN VALUES 28*b0d17251Schristos 29*b0d17251SchristosASN1_item_new_ex() and ASN1_item_new() return a pointer to the newly created 30*b0d17251SchristosB<ASN1_VALUE> or NULL on error. 31*b0d17251Schristos 32*b0d17251Schristos=head1 HISTORY 33*b0d17251Schristos 34*b0d17251SchristosThe function ASN1_item_new_ex() was added in OpenSSL 3.0. 35*b0d17251Schristos 36*b0d17251Schristos=head1 COPYRIGHT 37*b0d17251Schristos 38*b0d17251SchristosCopyright 2021 The OpenSSL Project Authors. All Rights Reserved. 39*b0d17251Schristos 40*b0d17251SchristosLicensed under the Apache License 2.0 (the "License"). You may not use 41*b0d17251Schristosthis file except in compliance with the License. You can obtain a copy 42*b0d17251Schristosin the file LICENSE in the source distribution or at 43*b0d17251SchristosL<https://www.openssl.org/source/license.html>. 44*b0d17251Schristos 45*b0d17251Schristos=cut 46