Files
moloapp/example/fw/Tls.hpp
T
retoor 3c4334cec9 feat: implement MoloApp plans 01-15 with integration
Full C++23 framework tree: runtime, observability, security,
data, app, realtime, supervisor, clients, CLI, example plus
enterprise tenancy, audit, operability, governance,
supplychain. Postgres via docker compose for tests.
2026-10-23 18:20:04 +02:00

26 lines
660 B
C++

#pragma once
// TLS posture: framework code depends only on ITlsContext. wolfSSL is NOT
// installed in this environment, so only StubTlsContext exists. It refuses
// handshakes loudly instead of silently serving plaintext as TLS.
// Gap: real wolfSSL-backed context from 03-security.md (TLS 1.3).
#include <string>
namespace molo::example::fw {
class ITlsContext {
public:
virtual ~ITlsContext() = default;
virtual std::string name() const = 0;
virtual bool available() const = 0;
};
class StubTlsContext : public ITlsContext {
public:
std::string name() const override;
bool available() const override;
};
} // namespace molo::example::fw