5 ASN1_STRING_new, ASN1_STRING_type_new, ASN1_STRING_free -
6 ASN1_STRING allocation functions
10 ASN1_STRING * ASN1_STRING_new(void);
11 ASN1_STRING * ASN1_STRING_type_new(int type);
12 void ASN1_STRING_free(ASN1_STRING *a);
16 ASN1_STRING_new() returns an allocated B<ASN1_STRING> structure. Its type
19 ASN1_STRING_type_new() returns an allocated B<ASN1_STRING> structure of
22 ASN1_STRING_free() frees up B<a>.
26 Other string types call the B<ASN1_STRING> functions. For example
27 ASN1_OCTET_STRING_new() calls ASN1_STRING_type(V_ASN1_OCTET_STRING).
31 ASN1_STRING_new() and ASN1_STRING_type_new() return a valid
32 ASN1_STRING structure or B<NULL> if an error occurred.
34 ASN1_STRING_free() does not return a value.
38 L<ERR_get_error(3)|ERR_get_error(3)>