Programming Tips - How can I program TCP/IP security on Windows?
Date: 2011jun20 Language: C/C++ OS: Windows Keywords: SSL, TLS, StartTLS, win32 Q. How can I program TCP/IP security on Windows? A. If you just want to make a https connection (be a client) you can use Wininet which is easy. (Also works for ftp and gopher). If you want to do IPSEC use WSASetSocketSecurity() on a socket. http://msdn.microsoft.com/en-us/library/bb394814%28v=vs.85%29.aspx If you want to do STARTTLS / SSL (other than https) use SChannel. Or you can leave the Microsoft world and use OpenSSL.