1ASN1_STRING_NEW(3)                  OpenSSL                 ASN1_STRING_NEW(3)
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 ASN1_STRING_type(V_ASN1_OCTET_STRING).
28

RETURN VALUES

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

SEE ALSO

36       ERR_get_error(3)
37
39       Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.
40
41       Licensed under the OpenSSL license (the "License").  You may not use
42       this file except in compliance with the License.  You can obtain a copy
43       in the file LICENSE in the source distribution or at
44       <https://www.openssl.org/source/license.html>.
45
46
47
481.1.1g                            2020-04-23                ASN1_STRING_NEW(3)
Impressum