1e71b7053SJung-uk Kim=pod 2e71b7053SJung-uk Kim 3e71b7053SJung-uk Kim=head1 NAME 4e71b7053SJung-uk Kim 5e71b7053SJung-uk KimASN1_STRING_new, ASN1_STRING_type_new, ASN1_STRING_free - 6e71b7053SJung-uk KimASN1_STRING allocation functions 7e71b7053SJung-uk Kim 8e71b7053SJung-uk Kim=head1 SYNOPSIS 9e71b7053SJung-uk Kim 10e71b7053SJung-uk Kim #include <openssl/asn1.h> 11e71b7053SJung-uk Kim 12e71b7053SJung-uk Kim ASN1_STRING *ASN1_STRING_new(void); 13e71b7053SJung-uk Kim ASN1_STRING *ASN1_STRING_type_new(int type); 14e71b7053SJung-uk Kim void ASN1_STRING_free(ASN1_STRING *a); 15e71b7053SJung-uk Kim 16e71b7053SJung-uk Kim=head1 DESCRIPTION 17e71b7053SJung-uk Kim 18e71b7053SJung-uk KimASN1_STRING_new() returns an allocated B<ASN1_STRING> structure. Its type 19e71b7053SJung-uk Kimis undefined. 20e71b7053SJung-uk Kim 21e71b7053SJung-uk KimASN1_STRING_type_new() returns an allocated B<ASN1_STRING> structure of 22*b077aed3SPierre Proncherytype I<type>. 23e71b7053SJung-uk Kim 24*b077aed3SPierre ProncheryASN1_STRING_free() frees up I<a>. 25*b077aed3SPierre ProncheryIf I<a> is NULL nothing is done. 26e71b7053SJung-uk Kim 27e71b7053SJung-uk Kim=head1 NOTES 28e71b7053SJung-uk Kim 29e71b7053SJung-uk KimOther string types call the B<ASN1_STRING> functions. For example 30*b077aed3SPierre ProncheryASN1_OCTET_STRING_new() calls ASN1_STRING_type_new(V_ASN1_OCTET_STRING). 31e71b7053SJung-uk Kim 32e71b7053SJung-uk Kim=head1 RETURN VALUES 33e71b7053SJung-uk Kim 34e71b7053SJung-uk KimASN1_STRING_new() and ASN1_STRING_type_new() return a valid 35*b077aed3SPierre ProncheryB<ASN1_STRING> structure or NULL if an error occurred. 36e71b7053SJung-uk Kim 37e71b7053SJung-uk KimASN1_STRING_free() does not return a value. 38e71b7053SJung-uk Kim 39e71b7053SJung-uk Kim=head1 SEE ALSO 40e71b7053SJung-uk Kim 41e71b7053SJung-uk KimL<ERR_get_error(3)> 42e71b7053SJung-uk Kim 43e71b7053SJung-uk Kim=head1 COPYRIGHT 44e71b7053SJung-uk Kim 45*b077aed3SPierre ProncheryCopyright 2002-2023 The OpenSSL Project Authors. All Rights Reserved. 46e71b7053SJung-uk Kim 47*b077aed3SPierre ProncheryLicensed under the Apache License 2.0 (the "License"). You may not use 48e71b7053SJung-uk Kimthis file except in compliance with the License. You can obtain a copy 49e71b7053SJung-uk Kimin the file LICENSE in the source distribution or at 50e71b7053SJung-uk KimL<https://www.openssl.org/source/license.html>. 51e71b7053SJung-uk Kim 52e71b7053SJung-uk Kim=cut 53