On Sat, Mar 01, 2014 at 02:31:51PM -0500, Jeffrey Walton wrote: > So I'm clear: there is no cleanup on the X509V3_CTX? I could not find > a X509V3_CTX_free() or similar function.
Correct, no cleanup: void X509V3_set_ctx(X509V3_CTX *ctx, X509 *issuer, X509 *subj, X509_REQ *req, X509_CRL *crl, int flags) { ctx->issuer_cert = issuer; ctx->subject_cert = subj; ctx->crl = crl; ctx->subject_req = req; ctx->flags = flags; } the caller provides the structure pointer, and all the fields are also allocated by the caller. This involves no allocation in the crypto library, just initialization. -- Viktor. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org