Secsock
Async TLS (Secure Socket) for the Tardy runtime
Install / Use
/learn @tardy-org/SecsockREADME
secsock
This is an implementation of SecureSocket, a wrapper for the Tardy Socket type that provides TLS functionality.
Supported TLS Backends
- BearSSL: An implementation of the SSL/TLS protocol (RFC 5346) written in C.
- s2n-tls: An implementation of SSL/TLS protocols by AWS. (Experimental)
Installing
Compatible Zig Version: 0.14.0
Compatible tardy Version: v0.3.0
Latest Release: 0.1.0
zig fetch --save git+https://github.com/tardy-org/secsock#v0.1.0
You can then add the dependency in your build.zig file:
const secsock = b.dependency("secsock", .{
.target = target,
.optimize = optimize,
}).module("secsock");
exe.root_module.addImport(secsock);
Contribution
We use Nix Flakes for managing the development environment. Nix Flakes provide a reproducible, declarative approach to managing dependencies and development tools.
Prerequisites
- Install Nix
sh <(curl -L https://nixos.org/nix/install) --daemon
- Enable Flake support in your Nix config (
~/.config/nix/nix.conf):experimental-features = nix-command flakes
Getting Started
- Clone this repository:
git clone https://github.com/tardy-org/secsock.git
cd secsock
- Enter the development environment:
nix develop
This will provide you with a shell that contains all of the necessary tools and dependencies for development.
Once you are inside of the development shell, you can update the development dependencies by:
- Modifying the
flake.nix - Running
nix flake update - Committing both the
flake.nixand theflake.lock
License
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in secsock by you, shall be licensed as MPL2.0, without any additional terms or conditions.
Related Skills
node-connect
354.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.3kCreate 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
354.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
