Hello,

when I extract a public key out of a X509 certificate with:

X509* myRSACertificate = .... (get out of file function)

EVP_PKEY *key = X509_extract_key( myX509Certificate );
RSA* pRSA = key->pkey.rsa;

to release all the momory should I all of the following ?

RSA_free (pRSA);
EVP_PKEY_free( key );
X509_free( myX509Certificate );

and is there a sequency I have to do it in ?

Thank you
Tom
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to