5 ASN1_STRING_new, ASN1_STRING_type_new, ASN1_STRING_free -
6 ASN1_STRING allocation functions
10 #include <openssl/asn1.h>
12 ASN1_STRING * ASN1_STRING_new(void);
13 ASN1_STRING * ASN1_STRING_type_new(int type);
14 void ASN1_STRING_free(ASN1_STRING *a);
18 ASN1_STRING_new() returns an allocated B<ASN1_STRING> structure. Its type
21 ASN1_STRING_type_new() returns an allocated B<ASN1_STRING> structure of
24 ASN1_STRING_free() frees up B<a>.
28 Other string types call the B<ASN1_STRING> functions. For example
29 ASN1_OCTET_STRING_new() calls ASN1_STRING_type(V_ASN1_OCTET_STRING).
33 ASN1_STRING_new() and ASN1_STRING_type_new() return a valid
34 ASN1_STRING structure or B<NULL> if an error occurred.
36 ASN1_STRING_free() does not return a value.
40 L<ERR_get_error(3)|ERR_get_error(3)>