Programming Tips - C/C++: SSL/TLS libraries
Date: 2022aug21
Language: C/C++
Q. C/C++: SSL/TLS libraries
A.
Open Source
License
OpenSSL Apache 2.0
GnuTLS LGPL-2.1-or-later
Mbed TLS Apache 2.0
BearSSL MIT (Clean code, but not TLS1.3 yet)
These libraries are reliable and multi-platform.
All these licenses permit use in closed-source projects.
By Microsoft for Windows Only
Comments
WinInet Probably the right abstraction for most uses
SecureChannel Difficult to use (aka Schannel)
MFC CInternetSession MFC wrapper around WinInet