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