TX *libctx, const char *propq);
 void X509_free(X509 *a);
 int X509_up_ref(X509 *a);
 STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *x);
 void OSSL_STACK_OF_X509_free(STACK_OF(X509) *certs);</code></pre>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>The X509 ASN1 allocation routines, allocate and free an X509 structure, which represents an X509 certificate.</p>

<p>X509_new_ex() allocates and initializes a X509 structure with a library context of <i>libctx</i>, property query of <i>propq</i> and a reference