Dave's Brain

Browse - Programming Tips - How can I program TCP/IP security on Windows?

Date: 2011jun20
Keywords: SSL, TLS, StartTLS
Language: C/C++
OS: Windows

Q.  How can I program TCP/IP security on Windows?

A.

If you just want to make a https connection you can use Wininet which is easy.

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.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.