1ASN1_STRING_NEW(3ossl)              OpenSSL             ASN1_STRING_NEW(3ossl)
2
3
4

NAME

6       ASN1_STRING_new, ASN1_STRING_type_new, ASN1_STRING_free - ASN1_STRING
7       allocation functions
8

SYNOPSIS

10        #include <openssl/asn1.h>
11
12        ASN1_STRING *ASN1_STRING_new(void);
13        ASN1_STRING *ASN1_STRING_type_new(int type);
14        void ASN1_STRING_free(ASN1_STRING *a);
15

DESCRIPTION

17       ASN1_STRING_new() returns an allocated ASN1_STRING structure. Its type
18       is undefined.
19
20       ASN1_STRING_type_new() returns an allocated ASN1_STRING structure of
21       type type.
22
23       ASN1_STRING_free() frees up a.  If a is NULL nothing is done.
24

NOTES

26       Other string types call the ASN1_STRING functions. For example
27       ASN1_OCTET_STRING_new() calls
28       ASN1_STRING_type_new(V_ASN1_OCTET_STRING).
29

RETURN VALUES

31       ASN1_STRING_new() and ASN1_STRING_type_new() return a valid ASN1_STRING
32       structure or NULL if an error occurred.
33
34       ASN1_STRING_free() does not return a value.
35

SEE ALSO

37       ERR_get_error(3)
38
40       Copyright 2002-2023 The OpenSSL Project Authors. All Rights Reserved.
41
42       Licensed under the Apache License 2.0 (the "License").  You may not use
43       this file except in compliance with the License.  You can obtain a copy
44       in the file LICENSE in the source distribution or at
45       <https://www.openssl.org/source/license.html>.
46
47
48
493.0.9                             2023-07-27            ASN1_STRING_NEW(3ossl)
Impressum