Libtlscpp
A C++ encapsulation of libtls
Install / Use
/learn @NanXiao/LibtlscppREADME
libtlscpp
A C++ encapsulation of libtls. I test it on OpenBSD, but it should work on other OSs which support LibreSSL.
Usage
# git clone https://github.com/NanXiao/libtlscpp.git
# cd libtlscpp
# mkdir build
# cd build
# cmake ..
# make && make install
The libtlscpp.so will be installed in /usr/local/lib/libtlscpp directory, while header files are in /usr/local/include/libtlscpp.
Example
In build/examples folder, there is a tls_server and tls_client. The root.pem, server.crt and server.key files are generated from libtls project.
Run tls_server in one terminal:
# ./tls_server
Run tls_client in another terminal:
# ./tls_client
Hello world!
Back to tls_server's terminal, you can see another "Hello world!" is printed out:
# ./tls_server
Hello world!
References:
Related Skills
node-connect
349.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
