title: Setting up TLS1.2 connection which supports SNI
body: <p>We are trying to setup TLS1.2 connection. Have downloaded the latest OpenSSL in the Macbook. Using this <a href="http://www.frank4dd.com/howto/openssl/sslconnect.htm" rel="nofollow">code</a> to create the TLS1.2 connection.<br>
  However this particular line is possibly causing the issue. It uses TLSv1.</p>
  
  <pre><code>  /* ---------------------------------------------------------- *
     * Set SSLv2 client hello, also announce SSLv3 and TLSv1      *
     * ---------------------------------------------------------- */
    method = SSLv23_client_method();
  </code></pre>
  
  <p>Tried <code>TLSv1_2_client_method()</code> method, but it gives below linking error:</p>
  
  <blockquote>
    <p>Undefined symbols for architecture x86_64:  "_TLSv1_2_client_method",
    referenced from:
         _main in sslconnect-7aa462.o</p>
  </blockquote>
  
  <p>It would be a great help, if someone can assist in creating TLS1.2 connection and then calling from the objective C (if some special treatment required for socket programming).</p>
  
  <p>[Kindly note that, I am not an iOS person. I am helping a team to fix a problem. Also newbie to socket programming myself, though the team has some experience.]</p>