1*4724848cSchristos=pod 2*4724848cSchristos 3*4724848cSchristos=head1 NAME 4*4724848cSchristos 5*4724848cSchristosASN1_STRING_new, ASN1_STRING_type_new, ASN1_STRING_free - 6*4724848cSchristosASN1_STRING allocation functions 7*4724848cSchristos 8*4724848cSchristos=head1 SYNOPSIS 9*4724848cSchristos 10*4724848cSchristos #include <openssl/asn1.h> 11*4724848cSchristos 12*4724848cSchristos ASN1_STRING * ASN1_STRING_new(void); 13*4724848cSchristos ASN1_STRING * ASN1_STRING_type_new(int type); 14*4724848cSchristos void ASN1_STRING_free(ASN1_STRING *a); 15*4724848cSchristos 16*4724848cSchristos=head1 DESCRIPTION 17*4724848cSchristos 18*4724848cSchristosASN1_STRING_new() returns an allocated B<ASN1_STRING> structure. Its type 19*4724848cSchristosis undefined. 20*4724848cSchristos 21*4724848cSchristosASN1_STRING_type_new() returns an allocated B<ASN1_STRING> structure of 22*4724848cSchristostype B<type>. 23*4724848cSchristos 24*4724848cSchristosASN1_STRING_free() frees up B<a>. 25*4724848cSchristosIf B<a> is NULL nothing is done. 26*4724848cSchristos 27*4724848cSchristos=head1 NOTES 28*4724848cSchristos 29*4724848cSchristosOther string types call the B<ASN1_STRING> functions. For example 30*4724848cSchristosASN1_OCTET_STRING_new() calls ASN1_STRING_type(V_ASN1_OCTET_STRING). 31*4724848cSchristos 32*4724848cSchristos=head1 RETURN VALUES 33*4724848cSchristos 34*4724848cSchristosASN1_STRING_new() and ASN1_STRING_type_new() return a valid 35*4724848cSchristosASN1_STRING structure or B<NULL> if an error occurred. 36*4724848cSchristos 37*4724848cSchristosASN1_STRING_free() does not return a value. 38*4724848cSchristos 39*4724848cSchristos=head1 SEE ALSO 40*4724848cSchristos 41*4724848cSchristosL<ERR_get_error(3)> 42*4724848cSchristos 43*4724848cSchristos=head1 COPYRIGHT 44*4724848cSchristos 45*4724848cSchristosCopyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 46*4724848cSchristos 47*4724848cSchristosLicensed under the OpenSSL license (the "License"). You may not use 48*4724848cSchristosthis file except in compliance with the License. You can obtain a copy 49*4724848cSchristosin the file LICENSE in the source distribution or at 50*4724848cSchristosL<https://www.openssl.org/source/license.html>. 51*4724848cSchristos 52*4724848cSchristos=cut 53