Skip to content
pi-c Check-in [7ce5fcd871]
Login

Check-in [7ce5fcd871]

Overview
Comment:Add an HTTPS stack on vendored BearSSL

BearSSL 0.6 is vendored and verified byte for byte against the upstream release. net.c adapts suit TLS and trust-anchor code to C11 with a deadline-bounded name lookup and TCP connect; http.c is a strict HTTP/1.1 response parser and one-shot POST. A probe completes a TLS 1.2 handshake and an HTTP exchange with the Messages API and refuses expired, wrong-host, self-signed and plain-HTTP endpoints.

Timelines: family | ancestors | descendants | both | stage-2
Files: files | file ages | folders
SHA3-256: 7ce5fcd87111a57b4b074d18bcc8d9a7ae9cd6f4f97dc02b8216438783f9471e
User & Date: dmestas on 2026-11-18 17:26:22.582
Other Links: branch diff | manifest | tags
Context
2026-11-18
17:41
Test and fuzz the HTTP response parser

Unit tests cover chunked, length-delimited and close-delimited bodies, interim responses, smuggling guards, chunk framing, truncation and the header cap, whole and bytewise. A libFuzzer target checks that chunking never changes the outcome. check-in: cb38c63312 user: dmestas tags: stage-2

17:26
Add an HTTPS stack on vendored BearSSL

BearSSL 0.6 is vendored and verified byte for byte against the upstream release. net.c adapts suit TLS and trust-anchor code to C11 with a deadline-bounded name lookup and TCP connect; http.c is a strict HTTP/1.1 response parser and one-shot POST. A probe completes a TLS 1.2 handshake and an HTTP exchange with the Messages API and refuses expired, wrong-host, self-signed and plain-HTTP endpoints. check-in: 7ce5fcd871 user: dmestas tags: stage-2

17:21
Vendor zlib and drop iconv and dynamic loading

pic now compiles zlib in, builds libfossil without iconv and SQLite without extension loading, so the binary links only libc, libm and pthread. check-in: 7e80bb990b user: dmestas tags: stage-2

Changes
Added src/http.c version [7bf46f7cf5].
Added src/http.h version [91367c7127].
Added src/net.c version [a14d37358e].
Added src/net.h version [a4e02e9422].