How to get "EVP_PKEY *dhpkey" from NID_X9_62_prime256v1.
Kumar Mishra, Sanjeev
Sanjeev.Kumar-Mishra at rbbn.com
Fri Aug 27 07:47:43 UTC 2021
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 follows --
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 "EVP_PKEY *dhpkey" from NID_X9_62_prime256v1. ?
I am searching the work around of above code.....
Thanks in anticipation !
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...
More information about the openssl-users