<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
Hi Matt,<br>
<br>
Yes. Exactly we followed the same and able to resolve errors. Thank you so much for the support and guidance. I'll get back if any further errors.<br>
<br>
Thanks & Regards,<br>
Nagalakshmi V J
<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> 21 October 2019 21:26:32<br>
<b>To:</b> Nagalakshmi V J <nagalakshmi.j@altran.com>; openssl-users@openssl.org <openssl-users@openssl.org><br>
<b>Subject:</b> Re: OpenSSL compilation errors in Windows</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">** This mail has been sent from an external source **<br>
<br>
<br>
On 20/10/2019 08:43, Nagalakshmi V J wrote:<br>
> Hi Matt,<br>
><br>
> This link is having few APIS. But for getting master_key_length, I don't<br>
> find any API. Not sure if we need to use getMasterKey API for that.<br>
<br>
You can use SSL_SESSION_get_master_key() for this.<br>
<br>
Note this comment in the RETURN VALUES section:<br>
<br>
"For the other functions, if outlen is greater than 0 then these<br>
functions return the number of bytes actually copied, which will be less<br>
than or equal to outlen. If outlen is 0 then these functions return the<br>
maximum number of bytes they would copy -- that is, the length of the<br>
underlying field."<br>
<br>
So to discover the master_key_length call the function with outlen to<br>
zero. You can then allocate an appropriate sized buffer and call the<br>
function again in order to get the actual master key.<br>
<br>
Matt<br>
<br>
<br>
><br>
> I will try to use these APIs and get back.<br>
><br>
> Thanks & Regards,<br>
> Nagalakshmi V J<br>
> ------------------------------------------------------------------------<br>
> *From:* Matt Caswell <matt@openssl.org><br>
> *Sent:* 18 October 2019 14:48:33<br>
> *To:* Nagalakshmi V J <nagalakshmi.j@altran.com>;<br>
> openssl-users@openssl.org <openssl-users@openssl.org><br>
> *Subject:* Re: OpenSSL compilation errors in Windows<br>
><br>
> ** This mail has been sent from an external source **<br>
><br>
><br>
> On 18/10/2019 11:49, Nagalakshmi V J wrote:<br>
>> Now the issue is SSL_session structure is also having accessor APIs<br>
>> which I am not aware of. So I need to get the APIs for accessing the<br>
>> master_key_length,etc.. given in the above code. Those are not listed<br>
>> in the openssl link referred.<br>
><br>
> On this page look a the various functions beginning with "SSL_SESSION_"<br>
> in the name:<br>
><br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.openssl.org_docs_man1.1.1_man3_&d=DwICaQ&c=cxWN2QSDopt5SklNfbjIjg&r=zbjUR56YPF3jaTRTjX4KZlHM9-LmYAuR5atSqEGOnpA&m=MZhYFrTAuuHOqAirPiGbT1CY6HDdH2U_CWYq12626Ts&s=gE0JHTVoToRHQRu5h2amvKa5WzyXsortlw0IoQd3VG4&e=">
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.openssl.org_docs_man1.1.1_man3_&d=DwICaQ&c=cxWN2QSDopt5SklNfbjIjg&r=zbjUR56YPF3jaTRTjX4KZlHM9-LmYAuR5atSqEGOnpA&m=MZhYFrTAuuHOqAirPiGbT1CY6HDdH2U_CWYq12626Ts&s=gE0JHTVoToRHQRu5h2amvKa5WzyXsortlw0IoQd3VG4&e=</a><br>
><br>
> From the code sample you gave you are probably mostly interested in the<br>
> functions on this page:<br>
><br>
> <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.openssl.org_docs_man1.1.1_man3_SSL-5FSESSION-5Fget-5Fmaster-5Fkey.html&d=DwICaQ&c=cxWN2QSDopt5SklNfbjIjg&r=zbjUR56YPF3jaTRTjX4KZlHM9-LmYAuR5atSqEGOnpA&m=MZhYFrTAuuHOqAirPiGbT1CY6HDdH2U_CWYq12626Ts&s=XTuEzS7qyBvIHc_qWJYoh3JVC4zPCzvUzNPStW_SvLI&e=">
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.openssl.org_docs_man1.1.1_man3_SSL-5FSESSION-5Fget-5Fmaster-5Fkey.html&d=DwICaQ&c=cxWN2QSDopt5SklNfbjIjg&r=zbjUR56YPF3jaTRTjX4KZlHM9-LmYAuR5atSqEGOnpA&m=MZhYFrTAuuHOqAirPiGbT1CY6HDdH2U_CWYq12626Ts&s=XTuEzS7qyBvIHc_qWJYoh3JVC4zPCzvUzNPStW_SvLI&e=</a><br>
><br>
> Matt<br>
><br>
> =====================================================<br>
> Please refer to <a href="https://northamerica.altran.com/email-disclaimer">https://northamerica.altran.com/email-disclaimer</a><br>
> for important disclosures regarding this electronic communication.<br>
> =====================================================<br>
</div>
</span></font></div>
=====================================================<br>
<font face="Arial" color="Black" size="2">Please refer to https://northamerica.altran.com/email-disclaimer<br>
for important disclosures regarding this electronic communication.<br>
</font>=====================================================<br>
</body>
</html>