1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1 christos ASN1_OBJECT_new, ASN1_OBJECT_free - object allocation functions 6 1.1 christos 7 1.1 christos =head1 SYNOPSIS 8 1.1 christos 9 1.1 christos #include <openssl/asn1.h> 10 1.1 christos 11 1.1 christos ASN1_OBJECT *ASN1_OBJECT_new(void); 12 1.1 christos void ASN1_OBJECT_free(ASN1_OBJECT *a); 13 1.1 christos 14 1.1 christos =head1 DESCRIPTION 15 1.1 christos 16 1.1.1.2 christos The B<ASN1_OBJECT> allocation routines, allocate and free an 17 1.1.1.2 christos B<ASN1_OBJECT> structure, which represents an ASN1 OBJECT IDENTIFIER. 18 1.1 christos 19 1.1.1.2 christos ASN1_OBJECT_new() allocates and initializes an B<ASN1_OBJECT> structure. 20 1.1 christos 21 1.1.1.2 christos ASN1_OBJECT_free() frees up the B<ASN1_OBJECT> structure I<a>. 22 1.1.1.2 christos If I<a> is NULL, nothing is done. 23 1.1 christos 24 1.1 christos =head1 NOTES 25 1.1 christos 26 1.1.1.2 christos Although ASN1_OBJECT_new() allocates a new B<ASN1_OBJECT> structure it 27 1.1 christos is almost never used in applications. The ASN1 object utility functions 28 1.1 christos such as OBJ_nid2obj() are used instead. 29 1.1 christos 30 1.1 christos =head1 RETURN VALUES 31 1.1 christos 32 1.1.1.2 christos If the allocation fails, ASN1_OBJECT_new() returns NULL and sets an error 33 1.1 christos code that can be obtained by L<ERR_get_error(3)>. 34 1.1 christos Otherwise it returns a pointer to the newly allocated structure. 35 1.1 christos 36 1.1 christos ASN1_OBJECT_free() returns no value. 37 1.1 christos 38 1.1 christos =head1 SEE ALSO 39 1.1 christos 40 1.1 christos L<ERR_get_error(3)>, L<d2i_ASN1_OBJECT(3)> 41 1.1 christos 42 1.1 christos =head1 COPYRIGHT 43 1.1 christos 44 1.1 christos Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved. 45 1.1 christos 46 1.1.1.2 christos Licensed under the Apache License 2.0 (the "License"). You may not use 47 1.1 christos this file except in compliance with the License. You can obtain a copy 48 1.1 christos in the file LICENSE in the source distribution or at 49 1.1 christos L<https://www.openssl.org/source/license.html>. 50 1.1 christos 51 1.1 christos =cut 52