How to access different fields of typedef struct evp_pkey_st EVP_PKEY.

Kumar Mishra, Sanjeev Sanjeev.Kumar-Mishra at
Tue Apr 20 10:45:26 UTC 2021

I am not getting different functions in OpenSSL 3.0 for accessing different fields of typedef struct evp_pkey_st EVP_PKEY. For Example - code is like this -
EVP_PKEY * privKey;
if ( BN_cmp(privKey->pkey.rsa->n, pubKey->pkey.rsa->n) != 0 )
else if ((privKey->type == EVP_PKEY_EC) && (pubKey->type == EVP_PKEY_EC))

All of those codes give forward declaration error.
what are corresponding APIs in OpenSSL 3.0

Thanks With Best Regards,
Sanjeev Kumar Mishra

Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. and its Affiliates that is confidential and/or proprietary for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies, including any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the openssl-users mailing list