ASN1_OBJECT_new 3 2008-05-09 0.9.9-dev OpenSSL
NAME
ASN1_OBJECT_new, ASN1_OBJECT_free, - object allocation functions
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include
ASN1_OBJECT *ASN1_OBJECT_new(void);
void ASN1_OBJECT_free(ASN1_OBJECT *a);
DESCRIPTION
The ASN1_OBJECT allocation routines, allocate and free an
ASN1_OBJECT structure, which represents an ASN1 OBJECT IDENTIFIER.
_A_S_N_1___O_B_J_E_C_T___n_e_w_(_) allocates and initializes a ASN1_OBJECT structure.
_A_S_N_1___O_B_J_E_C_T___f_r_e_e_(_) frees up the AASSNN11__OOBBJJEECCTT structure aa.
NOTES
Although _A_S_N_1___O_B_J_E_C_T___n_e_w_(_) allocates a new ASN1_OBJECT structure it
is almost never used in applications. The ASN1 object utility functions
such as _O_B_J___n_i_d_2_o_b_j_(_) are used instead.
RETURN VALUES
If the allocation fails, _A_S_N_1___O_B_J_E_C_T___n_e_w_(_) returns NNUULLLL and sets an error
code that can be obtained by _E_R_R___g_e_t___e_r_r_o_r(3).
Otherwise it returns a pointer to the newly allocated structure.
_A_S_N_1___O_B_J_E_C_T___f_r_e_e_(_) returns no value.
SEE ALSO
_E_R_R___g_e_t___e_r_r_o_r(3), _d_2_i___A_S_N_1___O_B_J_E_C_T(3)
HISTORY
_A_S_N_1___O_B_J_E_C_T___n_e_w_(_) and _A_S_N_1___O_B_J_E_C_T___f_r_e_e_(_) are available in all versions of SSLeay and OpenSSL.