This is a drop-in replacement for OpenSSL written entirely by AI 🤖.
- Model:
deepseek-v4-pro - Harness:
- Cost: $169
- Tokens: 1.1 billion
- Time: 9 days of chatting
- Steps:
- Ask the AI to write
ossl.h. - Ask the AI to write
test.c. - Ask the AI to write
ossl.c. - Ask the AI to debug until it works. This only implemented TLS 1.2.
- Ask the AI to add support for TLS 1.3.
- Ask the AI to write
server.c. - Ask the AI to add server support. This also optimized the code.
- Ask the AI to review and fix its own code.
- Ask the AI to write
- Additional fixes were done by
gemini-3.6-flashand Antigravity CLI, but I didn't meter these.
The library builds on all platforms using crossbuild.
Root CAs are extracted from /etc/ssl/certs/ca-certificates.crt from within the build image and dumped into cacerts.h.
Additionally, Let's Encrypt certificates are downloaded and added separately, since they don't seem to be part of the Linux root CAs by default.
See Makefile for more details.
I place this code in the public domain. You can do whatever you want with it.