On 27/08/2021 08:47, Kumar Mishra, Sanjeev wrote:
Hi All,
I am upgrading the code from OpenSSL 1.0.1 to OpenSSL 3.0.
I am getting compilation errors for deprecated functions and structure
like "EC_KEY_new_by_curve_name()" , "SSL_CTX_set_tmp_ecdh()" and
"EC_KEY"..etc.
The code is like f
-
---
---
EC_KEY *ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);
SSL_CTX_set_tmp_ecdh(mrmIcbPtr -> sslServerCtx, ecdh);
.
.
I got one replacement as
int SSL_CTX_set0_tmp_dh_pkey(SSL_CTX *ctx, EVP_PKEY *dhpkey);
Now, it will require "EVP_PKEY *dhpkey"
Now How to get &