Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
tls_policy.h File Reference

Policy-based TLS configuration (no_tls, require_tls, optional_tls). More...

#include <concepts>
#include <string>
#include <type_traits>
Include dependency graph for tls_policy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kcenon::network::policy::no_tls
 Policy type indicating no TLS/SSL encryption. More...
 
struct  kcenon::network::policy::tls_enabled
 Policy type indicating TLS/SSL encryption is enabled. More...
 
struct  kcenon::network::policy::is_tls_enabled< Policy >
 Type trait to check if a policy enables TLS. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::network
 Main namespace for all Network System components.
 
namespace  kcenon::network::policy
 

Concepts

concept  kcenon::network::policy::TlsPolicy
 Concept that constrains types to be valid TLS policies.
 

Variables

template<TlsPolicy Policy>
constexpr bool kcenon::network::policy::is_tls_enabled_v = Policy::enabled
 Helper variable template to check if TLS is enabled at compile time.
 

Detailed Description

Policy-based TLS configuration (no_tls, require_tls, optional_tls).

Policy types and concept for TLS configuration.

Defines no_tls, tls_enabled policy types and the TlsPolicy concept used as template parameters to control encryption behavior.

Definition in file tls_policy.h.