ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
auth.cpp File Reference

HTTP authentication for PC: Basic (RFC 7617) and stateless Digest (RFC 7616, SHA-256, qop=auth). More...

Go to the source code of this file.

Detailed Description

HTTP authentication for PC: Basic (RFC 7617) and stateless Digest (RFC 7616, SHA-256, qop=auth).

Split out of protocore.cpp (single-purpose server files). Holds the Basic credential check, the Digest field parser, the keyed stateless-nonce mint/verify (no per-nonce server state), and the 401 challenge builder. The route dispatcher (protocore.cpp) calls these PC methods when a matched route carries auth. Behavior is identical to the pre-split code.

Definition in file auth.cpp.