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