title: Compilable C++ code to implement a secure SLL/TLS client using MS SSPI
body: <p>As described here
  <a href="http://www.ddj.com/cpp/184401688" rel="nofollow noreferrer">http://www.ddj.com/cpp/184401688</a></p>
  
  <p>I do not have time to write this from scratch.</p>
  
  <p>Asked and not answered
  <a href="https://stackoverflow.com/questions/434961/implementing-ssl">https://stackoverflow.com/questions/434961/implementing-ssl</a></p>
  
  <p><strong>THE QUESTION IS:</strong></p>
  
  <p>I am looking for some compilable <em>working</em> source code that implements MS SSPI (as alluded to in the thread above), procedural not OOP preferred.</p>
  
  <p>I have looked at the code projects sample here:</p>
  
  <p><a href="http://www.codeproject.com/KB/IP/sslclasses.aspx" rel="nofollow noreferrer">http://www.codeproject.com/KB/IP/sslclasses.aspx</a></p>
  
  <p>But this is C# OOP. Converting this to C++ code is not trivial.</p>
  
  <p><strong>OpenSSL</strong></p>
  
  <p>SChannel calls follow GSS API standards. There are, of course, some alternatives -- OpenSSL for example. This package is a complete and thorough implementation of the protocol and for someone all too familiar with UNIX is undoubtedly the best choice. The package originally targeted the UNIX community and to compile it relies on the Perl runtime, so some learning curve is required for Windows developers who never worked with UNIX-type systems.</p>
  
  <p>Apart from that, OpenSLL does some very non-standard things</p>
  
  <p>Nikolai,
  Having contibuted a lot of COMPILABLE source code 
   (www.coastrd.com) 
  I was hoping to find someone willing to do the same.</p>