wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
certreload.h
Go to the documentation of this file.
1#ifndef WIRED_CERTRELOAD_CERTRELOAD_H
2#define WIRED_CERTRELOAD_CERTRELOAD_H
3
6
13
20#define WIRED_CERTRELOAD_CHAIN_MAX 10
21
35
46 const char* cert_path,
47 const char* key_path,
50
65 const char* cert_path,
66 const char* key_path,
69
70#endif
#define WIRED_CERTRELOAD_CHAIN_MAX
At most this many CERTIFICATE blocks are read from a fullchain cert.pem (leaf + intermediates).
Definition certreload.h:20
void wired_certreload_load_or_selfsigned(const char *cert_path, const char *key_path, wired_certreload_store *store, wired_srvboot_id *id)
If cert_path is set (non-NULL, non-empty), load the certificate/key pair via wired_certreload_load in...
int wired_certreload_load(const char *cert_path, const char *key_path, wired_certreload_store *store, wired_srvboot_id *id)
Read cert_path/key_path, decode the PEM chain and private key into store, and point id->chain/chain_c...
Value-type views that fold the SDK's recurring argument shapes into single parameters,...
RFC 9000 17.2 / RFC 9001 5 / RFC 8446 4.4: cold-start a server connection from a client Initial datag...
Caller-owned storage a load fills: the DER bytes of every chain certificate (concatenated),...
Definition certreload.h:27
wired_span chain[WIRED_CERTRELOAD_CHAIN_MAX]
views into chain_der
Definition certreload.h:32
u8 chain_der[16384]
concatenated DER of every chain cert.
Definition certreload.h:31
u8 priv[32]
P-256 private scalar.
Definition certreload.h:33
Read-only view of a byte range.
Definition span.h:30
The fixed server identity a bootstrap needs: the X25519 handshake key pair, the ECDSA P-256 signing s...
Definition srvboot.h:23
unsigned char u8
unsigned 8-bit integer / byte
Definition types.h:18