<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi All,
<div>I am upgrading the code from OpenSSL 1.0.1 to OpenSSL 3.0.</div>
<div>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.</div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The code is like follows --</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-------</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
-------</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
EC_KEY *ecdh = EC_KEY_new_by_curve_name(NID_X9_62_prime256v1);<br>
<span>SSL_CTX_set_tmp_ecdh(mrmIcbPtr -> sslServerCtx, ecdh);</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>.........</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>.........</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span>I got one replacement as</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
int SSL_CTX_set0_tmp_dh_pkey(SSL_CTX *ctx, EVP_PKEY *dhpkey);<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Now, it will require "<span style="background-color:rgb(255, 255, 255)">EVP_PKEY *dhpkey</span><u style="background-color:rgb(255, 255, 255)">"</u></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="background-color:rgb(255, 255, 255)">Now How to get <span style="background-color: rgb(255, 255, 255); display: inline !important;"><span> </span>"</span><span style="background-color: rgb(255, 255, 255);">EVP_PKEY *dhpkey" from <span style="background-color: rgb(255, 255, 255); display: inline !important;">NID_X9_62_prime256v1.
 ?</span></span></span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="background-color:rgb(255, 255, 255)"><span style="background-color: rgb(255, 255, 255);"><span style="background-color: rgb(255, 255, 255); display: inline !important;">I am searching the work around of above code.....</span></span></span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="background-color:rgb(255, 255, 255)"><span style="background-color: rgb(255, 255, 255);"><span style="background-color: rgb(255, 255, 255); display: inline !important;"><br>
</span></span></span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="background-color:rgb(255, 255, 255)"><span style="background-color: rgb(255, 255, 255);"><span style="background-color: rgb(255, 255, 255); display: inline !important;">Thanks in anticipation !</span></span></span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><span style="background-color:rgb(255, 255, 255)"><span style="background-color: rgb(255, 255, 255);"><span style="background-color: rgb(255, 255, 255); display: inline !important;">Sanjeev Kumar Mishra</span></span></span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><u style="background-color:rgb(255, 255, 255)"><u style="background-color:rgb(255, 255, 255)"><span style="background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></u></u></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span><br>
</span></div>
<br clear="both">
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.<BR>
</body>
</html>