<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);">
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">Hi All,</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)"><br>
</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">         We are upgrading our code to openssl 3.0. But we need to keep the older</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">         version of code also which is 1.0. So, we tried by keeping the newer version </div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">         of the code as below but when we compiled the code for 3.0, evp.h is not</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">         getting included. Please suggest f our approach is correct</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)"><br>
</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">
<div style="margin:0px;font-size:15px;font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
<p style="font-size:11pt;font-family:Calibri, sans-serif;margin:0px"><span style="margin:0px;font-size:12pt;color:black">#if (OPENSSL_VERSION_NUMBER >= 0x30000000L)</span></p>
</div>
<div style="margin:0px;font-size:15px;font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
<p style="font-size:11pt;font-family:Calibri, sans-serif;margin:0px"><span style="margin:0px;font-size:12pt;color:black">  /******higher version code************/</span></p>
<p style="font-size:11pt;font-family:Calibri, sans-serif;margin:0px"><span style="margin:0px;font-size:12pt;color:black"><span style="color:rgb(32, 31, 30);font-family:Calibri, Arial, Helvetica, sans-serif;font-size:15px;background-color:rgb(255, 255, 255);display:inline !important"><span> </span>#include
 <openssl/evp.h></span><br>
</span></p>
</div>
<div style="margin:0px;font-size:15px;font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
<p style="font-size:11pt;font-family:Calibri, sans-serif;margin:0px"><span style="margin:0px;font-size:12pt;color:black">#else</span></p>
</div>
<div style="margin:0px;font-size:15px;font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
<p style="font-size:11pt;font-family:Calibri, sans-serif;margin:0px"><span style="margin:0px;font-size:12pt;color:black">  /*******lower version code *********/</span></p>
<p style="font-size:11pt;font-family:Calibri, sans-serif;margin:0px"><span style="margin:0px;font-size:12pt;color:black"><span style="color:rgb(32, 31, 30);font-family:Calibri, Arial, Helvetica, sans-serif;font-size:15px;background-color:rgb(255, 255, 255);display:inline !important"><span> </span>#include
 <openssl/aes.h></span><br>
</span></p>
</div>
<div style="margin:0px;font-size:15px;font-family:"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
<p style="font-size:11pt;font-family:Calibri, sans-serif;margin:0px"><span style="margin:0px;font-size:12pt;color:black">#endif</span></p>
</div>
<br>
       Also, we found that OPENSSL_VERSION_NUMBER is deprecated, so thought of using</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">       the below macros but we think since this macro is defined in newer version this might</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">       not work when we compile it for older versions. Please suggest how to handle this.</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)">
<div style="margin:0px;font-size:15px;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
<br>
if (OPENSSL_VERSION_MAJOR >= 3)</div>
<div style="margin:0px;font-size:15px;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
  #include <openssl/evp.h></div>
<div style="margin:0px;font-size:15px;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
else if (OPENSSL_VERSION_MAJOR < 3)</div>
<div style="margin:0px;font-size:15px;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
  #include <openssl/aes.h></div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)"><br>
</div>
</div>
<div class="x_x__Entity x_x__EType_OWALinkPreview x_x__EId_OWALinkPreview_1 x_x__EReadonly_1" style="margin:0px;font-size:15px;color:rgb(32, 31, 30);background-color:rgb(255, 255, 255)">
</div>
<div style="margin:0px;font-size:12pt;background-color:rgb(255, 255, 255)"><br>
thanks, <br>
shiva kumar </div>
<br>
</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>