<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">On 5/21/2019 4:53 AM, Chethan Kumar
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:447C096A3E2889439233CDD6DAB29F95BF3CB52E@tosblrmbx04.TOSHIBA-TSIP.COM">
      <pre class="moz-quote-pre" wrap="">Thanks for the information.

I researched more and found that tlsext_hostname member variable in SSL structure can be used to to get host name.
If applications set this using SSL_set_tlsext_host_name(), is it correct to print hostname/IP in  tlsext_hostname.
Can I use this one to set hostname/Ip address.?
Can applications acting as both server and client set this?

Thanks in advance,
Chethan Kumar

</pre>
    </blockquote>
    <p>Why do you want the specific IP address?  If the other end is
      behind a NAT device or similar (or a full-blown proxy) then that
      address is not meaningful in the context of actual identification
      as to the source of the communication. <br>
    </p>
    <p>Better, if it is necessary to know who you're talking to, is for
      the client to present a certificate which the server can then
      verify as to validity and provenance; the client, of course, by
      definition has same capability against the server so it can verify
      that the server it thinks it is talking to is actually the one
      it's communicating with.
    </p>
    <blockquote type="cite"
cite="mid:447C096A3E2889439233CDD6DAB29F95BF3CB52E@tosblrmbx04.TOSHIBA-TSIP.COM"></blockquote>
    <div class="moz-signature">-- <br>
      --
      Karl Denninger<br>
      <i>The Market-Ticker</i><br>
      S/MIME Email accepted and preferred</div>
  </body>
</html>