<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<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>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Appreciate the response for the below query. Anyone faced the same issue?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div><font style="BACKGROUND-COLOR: #ffffff" face="Tahoma" color="#0000ff" size="2"><em>Thanks & Regards,</em></font></div>
<div><font style="BACKGROUND-COLOR: #ffffff" face="tahoma" color="#0000ff" size="2"><em>Nagalakshmi V J</em></font></div>
</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> Nagalakshmi V J <nagalakshmi.j@altran.com><br>
<b>Sent:</b> 24 October 2019 03:29<br>
<b>To:</b> Nagalakshmi V J <nagalakshmi.j@altran.com>; Matt Caswell <matt@openssl.org>; openssl-users@openssl.org <openssl-users@openssl.org><br>
<b>Subject:</b> Re: OpenSSL compilation errors in Windows</font>
<div> </div>
</div>
<div>Hi Matt,<br>
<br>
Kindly provide your inputs for the below mail.<br>
<br>
Thanks & Regards,<br>
Nagalakshmi V J
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Nagalakshmi V J <nagalakshmi.j@altran.com><br>
<b>Sent:</b> 22 October 2019 10:41:40<br>
<b>To:</b> Matt Caswell <matt@openssl.org>; openssl-users@openssl.org <openssl-users@openssl.org><br>
<b>Cc:</b> Nagalakshmi V J <nagalakshmi.j@altran.com><br>
<b>Subject:</b> RE: OpenSSL compilation errors in Windows</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:Century}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_x_MsoNormal, li.x_x_MsoNormal, div.x_x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_x_MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.x_x_MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.x_x_msonormal0, li.x_x_msonormal0, div.x_x_msonormal0
        {margin-right:0in;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_x_EmailStyle19
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style>
<div lang="EN-US">
<div class="x_x_WordSection1">
<p class="x_x_MsoNormal">Hi Matt,</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">Could you please help to get any clue on the ACCESSOR APIs of the following.
</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">I tried searching APIs. Not getting exact matches. Referred the below links.</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.openssl.org_docs_man1.1.1_man3_SSL-5Fset-5Finfo-5Fcallback.html&d=DwMFAg&c=cxWN2QSDopt5SklNfbjIjg&r=zbjUR56YPF3jaTRTjX4KZlHM9-LmYAuR5atSqEGOnpA&m=Njt4ya1WwfEyFfb0YIugFx24W8dsynF6tpT1_Km5mtI&s=-MNUo0TNpVbEaR7EYseQvOuqyaOVxpmsTxKxZnpJv7o&e=">https://www.openssl.org/docs/man1.1.1/man3/SSL_set_info_callback.html</a></p>
<p class="x_x_MsoNormal"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.openssl.org_docs_man1.1.1_man3_EVP-5Fmd5.html&d=DwMFAg&c=cxWN2QSDopt5SklNfbjIjg&r=zbjUR56YPF3jaTRTjX4KZlHM9-LmYAuR5atSqEGOnpA&m=Njt4ya1WwfEyFfb0YIugFx24W8dsynF6tpT1_Km5mtI&s=mzU5jKWESsCh8cwObLKcthJRhdqflLMfP41CLfzqhWs&e=">https://www.openssl.org/docs/man1.1.1/man3/EVP_md5.html</a></p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">Getting similar error for the below code.</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">tls1_PRF<span style="color:red">(s->ctx->md5,s->ctx->sha1</span>,buf,(<span style="color:blue">int</span>)(p-buf),</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">         pGenerator->master_secret,<span style="color:blue">sizeof</span>(pGenerator->master_secret),</span></p>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; font-family:"Century",serif">         km,tmp,num);</span></p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">Struct <span style="font-size:12.0pt; font-family:"Century",serif">
ssl_ctx_st {</span></p>
<p class="x_x_MsoNormal">…</p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif; color:blue">const</span><span style="font-size:12.0pt; font-family:"Century",serif"> EVP_MD *md5;         
<span style="color:green">/* For SSLv3/TLSv1 'ssl3-md5' */</span></span></p>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; font-family:"Century",serif; color:blue">const</span><span style="font-size:12.0pt; font-family:"Century",serif"> EVP_MD *sha1;        
<span style="color:green">/* For SSLv3/TLSv1 'ssl3->sha1' */</span></span></p>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; font-family:"Century",serif; color:green">…</span></p>
<p class="x_x_MsoNormal">}</p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif; color:blue">struct</span><span style="font-size:12.0pt; font-family:"Century",serif"> evp_md_st {</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> type;</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> pkey_type;</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> md_size;</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">unsigned</span> <span style="color:blue">long</span> flags;</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> (*init) (EVP_MD_CTX *ctx);</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> (*update) (EVP_MD_CTX *ctx, <span style="color:blue">
const</span> <span style="color:blue">void</span> *data, size_t count);</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> (*final) (EVP_MD_CTX *ctx, <span style="color:blue">
unsigned</span> <span style="color:blue">char</span> *md);</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> (*copy) (EVP_MD_CTX *to, <span style="color:blue">
const</span> EVP_MD_CTX *from);</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> (*cleanup) (EVP_MD_CTX *ctx);</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> block_size;</span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> ctx_size;               <span style="color:green">/* how big does the ctx->md_data need to be */</span></span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:green">/* control function */</span></span></p>
<p class="x_x_MsoNormal" style="text-autospace:none"><span style="font-size:12.0pt; font-family:"Century",serif">   
<span style="color:blue">int</span> (*md_ctrl) (EVP_MD_CTX *ctx, <span style="color:blue">
int</span> cmd, <span style="color:blue">int</span> p1, <span style="color:blue">
void</span> *p2);</span></p>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; font-family:"Century",serif">}
<span style="color:green">/* EVP_MD */</span> ;</span></p>
<p class="x_x_MsoNormal"><span style="font-size:12.0pt; font-family:"Century",serif"> </span></p>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">Thanks and regards,</p>
<p class="x_x_MsoNormal">Nagalakshmi</p>
<p class="x_x_MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_x_MsoNormal"><b>From:</b> Nagalakshmi V J <nagalakshmi.j@altran.com> <br>
<b>Sent:</b> Tuesday, October 22, 2019 9:39 AM<br>
<b>To:</b> Matt Caswell <matt@openssl.org>; Nagalakshmi V J <nagalakshmi.j@altran.com>; openssl-users@openssl.org<br>
<b>Subject:</b> Re: OpenSSL compilation errors in Windows</p>
</div>
</div>
<p class="x_x_MsoNormal"> </p>
<p class="x_x_MsoNormal">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 </p>
<div class="x_x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_x_divRplyFwdMsg">
<p class="x_x_MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Matt Caswell <<a href="mailto:matt@openssl.org">matt@openssl.org</a>><br>
<b>Sent:</b> 21 October 2019 21:26:32<br>
<b>To:</b> Nagalakshmi V J <<a href="mailto:nagalakshmi.j@altran.com">nagalakshmi.j@altran.com</a>>;
<a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a> <<a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a>><br>
<b>Subject:</b> Re: OpenSSL compilation errors in Windows</span> </p>
<div>
<p class="x_x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_x_MsoNormal">** 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 <<a href="mailto:matt@openssl.org">matt@openssl.org</a>><br>
> *Sent:* 18 October 2019 14:48:33<br>
> *To:* Nagalakshmi V J <<a href="mailto:nagalakshmi.j@altran.com">nagalakshmi.j@altran.com</a>>;<br>
> <a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a> <<a href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a>><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>
> =====================================================</p>
</div>
</div>
<p class="x_x_MsoNormal">=====================================================<br>
<span style="font-size:10.0pt; font-family:"Arial",sans-serif; color:black">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>
</span>=====================================================</p>
</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>
</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>
</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>