Re: Reference Counters in OpenSSL

2008-06-18 Thread Dr. Stephen Henson
On Wed, Jun 18, 2008, Gerhard Gappmeier wrote: > Hi > > some functions like X509_PUBKEY_get increment the internal reference > counter of the "object" > so that EVP_PKEY_free( pKey ) has to be called. > > Other functions like X509_get_X509_PUBKEY just return an internal pointer > and I have to ca

Reference Counters in OpenSSL

2008-06-18 Thread Gerhard Gappmeier
Hi some functions like X509_PUBKEY_get increment the internal reference counter of the "object" so that EVP_PKEY_free( pKey ) has to be called. Other functions like X509_get_X509_PUBKEY just return an internal pointer and I have to care myself about reference counting. Is there a general rule