On Tue, Oct 29, 2013, Salz, Rich wrote:

> > You don't and shouldn't free it: it will be free when the SSL_CTX it is 
> > added to is freed.
> 
> In other words, if you want a local copy, bump the refcount for yourself.  
> Right?
> 

Yes. Unfortunately there isn't a function that does that at present and you
have to do it with: 

CRYPTO_add(&cert->references, 1, CRYPTO_LOCK_X509);

Steve.
--
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [email protected]

Reply via email to