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