[openssl-users] EVP_PKEY *X509_get0_pubkey(X509 *x);

Viktor Dukhovni openssl-users at dukhovni.org
Thu Jan 7 18:41:45 UTC 2016


> On Jan 7, 2016, at 1:39 PM, Ken Goldman <kgoldman at us.ibm.com> wrote:
> 
> 3 - I use this sequence:
> 
> x509 = PEM_read_bio_X509
> EVP_PKEY = X509_get_pubkey
> RSA = EVP_PKEY_get1_RSA
> 
> What should be freed?  All three structures or just a subset?

All three.

-- 
	Viktor.





More information about the openssl-users mailing list