<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 Matt,</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);">
Thank you so much for your response. Those mentioned APIs resolved my errors.</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);">
For the below code,</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);">
<span> return  SSL_get_session(pConnection) != NULL && <br>
</span><span>                </span><span style="color: rgb(200, 38, 19);">pConnection->session->session_id_length
</span><span>!= 0;</span><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);">
Any reference for accessing session_id_length?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://www.openssl.org/docs/man1.1.0/man3/SSL_CTX_set_generate_session_id.html">https://www.openssl.org/docs/man1.1.0/man3/SSL_CTX_set_generate_session_id.html</a><br>
</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);">
Not sure if I can use the above link.</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);">
<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> Matt Caswell <matt@openssl.org><br>
<b>Sent:</b> 29 October 2019 10:47<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 29/10/2019 10:34, Nagalakshmi V J wrote:<br>
><br>
> tls1_PRF(s->ctx->md5,s->ctx->sha1,buf,(int)(p-buf),<br>
><br>
>          pGenerator->master_secret,sizeof(pGenerator->master_secret),<br>
><br>
>          km,tmp,num);<br>
<br>
It seems your code is replicating parts of libssl - which seems like a<br>
strange (and possibly dangerous) thing to do!<br>
<br>
> Struct ssl_ctx_st {<br>
><br>
> …<br>
><br>
> constEVP_MD *md5;          /* For SSLv3/TLSv1 'ssl3-md5' */<br>
><br>
> constEVP_MD *sha1;         /* For SSLv3/TLSv1 'ssl3->sha1' */<br>
><br>
> …<br>
><br>
> }<br>
<br>
You really don't need to access these things. They're just cached<br>
references to the value returned by EVP_get_digestbyname("ssl3-md5") and<br>
EVP_get_digestbyname("ssl3-sha1"). So you can call those functions<br>
directly anyway.<br>
<br>
Matt<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>