X509_new(3) OpenSSL X509_new(3) NNAAMMEE X509_new, X509_free - X509 certificate ASN1 allocation functions SSYYNNOOPPSSIISS #include X509 *X509_new(void); void X509_free(X509 *a); DDEESSCCRRIIPPTTIIOONN The X509 ASN1 allocation routines, allocate and free an X509 structure, which represents an X509 certificate. _X_5_0_9___n_e_w_(_) allocates and initializes a X509 structure. _X_5_0_9___f_r_e_e_(_) frees up the XX550099 structure aa. RREETTUURRNN VVAALLUUEESS If the allocation fails, _X_5_0_9___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. _X_5_0_9___f_r_e_e_(_) returns no value. SSEEEE AALLSSOO _E_R_R___g_e_t___e_r_r_o_r(3), _d_2_i___X_5_0_9(3) HHIISSTTOORRYY _X_5_0_9___n_e_w_(_) and _X_5_0_9___f_r_e_e_(_) are available in all versions of SSLeay and OpenSSL. 1.0.2u 2019-12-20 X509_new(3)