ASN1_OBJECT_new(3) OpenSSL ASN1_OBJECT_new(3) NNAAMMEE ASN1_OBJECT_new, ASN1_OBJECT_free, - object allocation functions SSYYNNOOPPSSIISS #include ASN1_OBJECT *ASN1_OBJECT_new(void); void ASN1_OBJECT_free(ASN1_OBJECT *a); DDEESSCCRRIIPPTTIIOONN 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. NNOOTTEESS 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. RREETTUURRNN VVAALLUUEESS 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. SSEEEE AALLSSOO _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) HHIISSTTOORRYY _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. 1.0.1u 2016-09-22 ASN1_OBJECT_new(3)