<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"> <div><p class="ydp8a277315MsoNormal" style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;mso-fareast-font-family:"Times New Roman";mso-bidi-font-family:Calibri;color:black">Hi All,</span></p>

<p class="ydp8a277315MsoNormal" style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;mso-fareast-font-family:"Times New Roman";mso-bidi-font-family:Calibri;color:black">I have a query related to getting the
temporary key used during the key exchange. As a TLS client, I am able to get
the key using the API<b> </b>SSL_get_peer_tmp_key().<b> </b></span></p>

<div style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;mso-fareast-font-family:"Times New Roman";mso-bidi-font-family:Calibri;color:black">But when acting as TLS Server, I used
API <b>SSL_get_tmp_key</b></span>(). This
API is returning the temp key for TLS1.3 ciphers but for ECDHE and DHE
algorithm type,  the tmp key is not obtained. In the code, the tmp key is being cleared during the client key exchange
after generating secrets.</div>

<p class="ydp8a277315MsoNormal" style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span style="font-size:10.0pt;font-family:"Helvetica",sans-serif;mso-fareast-font-family:"Times New Roman";mso-bidi-font-family:Calibri;color:black">Is there any other way to obtain the
temporary key when acting as a server?</span></p>

<p class="ydp8a277315MsoNormal" style="background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span style="font-family: Helvetica, sans-serif; font-size: 10pt;">Thanks in advance.</span></p></div><br></div><div dir="ltr" data-setdir="false"><b><br></b></div></div></body></html>