This is a framework which allows you to implement a TLS client or multi-threaded server in C++ relatively easily. It includes a working example and allows for server and optional client authentication.
The whole project is fully described here, it was originally a CodeProject article here.
It is licensed under the CodeProject Open License (see the License.md file in the project) also available here.