X509_new 3 2008-05-09 0.9.9-dev OpenSSL
NAME
X509_new, X509_free - X509 certificate ASN1 allocation functions
LIBRARY
libcrypto, -lcrypto
SYNOPSIS
#include
X509 *X509_new(void);
void X509_free(X509 *a);
DESCRIPTION
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.
RETURN VALUES
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.
SEE ALSO
_E_R_R___g_e_t___e_r_r_o_r(3), _d_2_i___X_5_0_9(3)
HISTORY
_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.