<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
<div><br>
</div>
In the below C file, I'm trying to update eay_sterror(line:1352) function to 3.0, In eay_sterror function deprecated functions are used<br>
<br>
<div style="margin:0px;font-size:12pt;color:black;background-color:white"><span style="margin:0px;background-color:yellow">CRYPTO_thread_id()</span><span style="margin:0px;background-color:white"><br>
<br>
</span><span style="margin:0px;background-color:yellow">ERR_get_error_line_data()</span><span style="margin:0px;background-color:white"><br>
</span></div>
<br>
<br>
<br>
<a href="https://github.com/zoulasc/racoon2/blob/master/iked/crypto_openssl.c" id="LPlnk">https://github.com/zoulasc/racoon2/blob/master/iked/crypto_openssl.c</a><br>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1">
<div id="LPBorder_GTaHR0cHM6Ly9naXRodWIuY29tL3pvdWxhc2MvcmFjb29uMi9ibG9iL21hc3Rlci9pa2VkL2NyeXB0b19vcGVuc3NsLmM." class="LPBorder442834" style="width: 100%; margin-top: 16px; margin-bottom: 16px; position: relative; max-width: 800px; min-width: 424px;">
<table id="LPContainer442834" role="presentation" style="padding: 12px 36px 12px 12px; width: 100%; border-width: 1px; border-style: solid; border-color: rgb(200, 200, 200); border-radius: 2px;">
<tbody>
<tr valign="top" style="border-spacing: 0px;">
<td>
<div id="LPImageContainer442834" style="position: relative; margin-right: 12px; height: 120px; overflow: hidden; width: 240px;">
<a target="_blank" id="LPImageAnchor442834" href="https://github.com/zoulasc/racoon2/blob/master/iked/crypto_openssl.c"><img id="LPThumbnailImageId442834" alt="" height="120" style="display: block;" width="240" src="https://opengraph.githubassets.com/df82b8dd29e00f31e323ebecf94fd0eba5f0171e46e32afa476790bda297eb5f/zoulasc/racoon2"></a></div>
</td>
<td style="width: 100%;">
<div id="LPTitle442834" style="font-size: 21px; font-weight: 300; margin-right: 8px; font-family: wf_segoe-ui_light, "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px;">
<a target="_blank" id="LPUrlAnchor442834" href="https://github.com/zoulasc/racoon2/blob/master/iked/crypto_openssl.c" style="text-decoration: none; color: var(--themePrimary);">racoon2/crypto_openssl.c at master · zoulasc/racoon2</a></div>
<div id="LPDescription442834" style="font-size: 14px; max-height: 100px; color: rgb(102, 102, 102); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; margin-bottom: 12px; margin-right: 8px; overflow: hidden;">
The Racoon2 project is a joint effort which provides an implementation of key management system for IPsec. The implementation is called Racoon2, a successor of Racoon, which was developed by the KA...</div>
<div id="LPMetadata442834" style="font-size: 14px; font-weight: 400; color: rgb(166, 166, 166); font-family: wf_segoe-ui_normal, "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif;">
github.com</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<br>
please suggest the replacement,<br>
<br>
thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
shiva kumar</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Matt Caswell <matt@openssl.org><br>
<b>Sent:</b> Friday, September 3, 2021 1:25 PM<br>
<b>To:</b> Shivakumar Poojari <Shivakumar.Poojari@rbbn.com>; openssl-users@openssl.org <openssl-users@openssl.org><br>
<b>Cc:</b> Paramashivaiah, Sunil <Sunil.Paramashivaiah@rbbn.com>; Bhattacharjee, Debapriyo (c) <dbhattacharjee@rbbn.com><br>
<b>Subject:</b> [EXTERNAL] Re: Replacement for CRYPTO_thread_id() & ERR_get_error_line_data() for openssl3.0</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText"><br>
<br>
On 03/09/2021 05:58, Shivakumar Poojari wrote:<br>
> Hi All,<br>
> <br>
> We are upgrading our code to openssl 3.0. the below function we trying <br>
> to replace, searched in the openssl man pages not found proper information.<br>
> <br>
> CRYPTO_thread_id()<br>
<br>
The deprecated implementation of this is a no-op (always returns 0). <br>
What do you need this for? This used to be useful when locking callbacks <br>
existed. But they were removed in 1.1.0.<br>
<br>
> <br>
> ERR_get_error_line_data()<br>
<br>
You can call ERR_get_error_all() as a replacement (passing a NULL value <br>
for the "func" parameter).<br>
<br>
<br>
Matt<br>
<br>
> <br>
> <br>
> please suggest.<br>
> thanks,<br>
> shivakumar.<br>
> <br>
> <br>
> Notice: This e-mail together with any attachments may contain <br>
> information of Ribbon Communications Inc. and its Affiliates that is <br>
> confidential and/or proprietary for the sole use of the intended <br>
> recipient. Any review, disclosure, reliance or distribution by others or <br>
> forwarding without express permission is strictly prohibited. If you are <br>
> not the intended recipient, please notify the sender immediately and <br>
> then delete all copies, including any attachments.<br>
</div>
</span></font></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>