In an old program we have a line of code like below:
EVP_PKEY *pKey;
/*
.
.
*/
if (pkey->type == EVP_PKEY_RSA)
doSomething();
But in newer versions of OpenSSL the access to internal implementation of EVP_PKEY
is banned.
I could not find any function to replace above implementation. Any idea?
I found the answer on OpenSSL Github issue list:
EVP_PKEY_id() returns the type field.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With