|
ProtoCore v0.0.1
Deterministic, zero-heap network stack for embedded targets
|
HTTP authentication for PC: Basic (RFC 7617) and stateless Digest (RFC 7616, SHA-256, qop=auth). More...
#include "crypto/hash/sha256.h"#include "network_drivers/presentation/codec/base64/base64.h"#include "network_drivers/transport/tcp.h"#include "protocore.h"#include "server/protocore_internal.h"#include "services/system/clock.h"#include "shared_primitives/hex.h"#include "shared_primitives/strbuf.h"#include <stdio.h>#include <string.h>Go to the source code of this file.
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.