|
KEEL 1.0.0
Minimal C11 HTTP client/server library built on epoll/kqueue/io_uring/poll
|


Go to the source code of this file.
Data Structures | |
| struct | KlTls |
| struct | KlTlsConfig |
| TLS configuration for KlConfig. More... | |
Typedefs | |
| typedef struct KlTls | KlTls |
| Pluggable TLS session vtable. | |
| typedef struct KlTlsCtx | KlTlsCtx |
| Opaque per-server TLS context (certificates, keys, ciphers). User-owned — KEEL never inspects or modifies this. | |
| typedef KlTls *(* | KlTlsFactory) (KlTlsCtx *ctx, KlAllocator *alloc) |
| Factory creates a per-connection KlTls session from the shared context. Called once per connection slot at server init. | |
Enumerations | |
| enum | KlTlsResult { KL_TLS_OK , KL_TLS_WANT_READ , KL_TLS_WANT_WRITE , KL_TLS_ERROR } |
| Result codes for non-blocking TLS operations. More... | |
Pluggable TLS session vtable.
Users implement this interface to provide TLS (BearSSL, LibreSSL, OpenSSL, rustls-ffi, etc.). One KlTls instance exists per connection slot, pre-allocated at server init and reused via reset() across keep-alive connections.
Opaque per-server TLS context (certificates, keys, ciphers). User-owned — KEEL never inspects or modifies this.
| typedef KlTls *(* KlTlsFactory) (KlTlsCtx *ctx, KlAllocator *alloc) |
Factory creates a per-connection KlTls session from the shared context. Called once per connection slot at server init.
| ctx | Shared TLS context (certs/keys). |
| alloc | Allocator for session resources. |
| enum KlTlsResult |