Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::policy::tls_enabled Struct Reference

Policy type indicating TLS/SSL encryption is enabled. More...

#include <tls_policy.h>

Collaboration diagram for kcenon::network::policy::tls_enabled:
Collaboration graph

Public Attributes

std::string cert_path {}
 
std::string key_path {}
 
std::string ca_path {}
 
bool verify_peer {true}
 

Static Public Attributes

static constexpr bool enabled = true
 

Detailed Description

Policy type indicating TLS/SSL encryption is enabled.

This policy carries configuration for TLS connections including certificate paths and verification settings.

Usage

tls_enabled tls_config{
.cert_path = "/path/to/cert.pem",
.key_path = "/path/to/key.pem",
.ca_path = "/path/to/ca.pem",
.verify_peer = true
};
messaging_client<tcp_protocol, tls_enabled> secure_client;
Policy type indicating TLS/SSL encryption is enabled.
Definition tls_policy.h:61
Examples
tls_policy_example.cpp.

Definition at line 61 of file tls_policy.h.

Member Data Documentation

◆ ca_path

std::string kcenon::network::policy::tls_enabled::ca_path {}
Examples
tls_policy_example.cpp.

Definition at line 66 of file tls_policy.h.

66{};

Referenced by main().

◆ cert_path

std::string kcenon::network::policy::tls_enabled::cert_path {}
Examples
tls_policy_example.cpp.

Definition at line 64 of file tls_policy.h.

64{};

Referenced by main().

◆ enabled

bool kcenon::network::policy::tls_enabled::enabled = true
staticconstexpr

Definition at line 62 of file tls_policy.h.

Referenced by main().

◆ key_path

std::string kcenon::network::policy::tls_enabled::key_path {}
Examples
tls_policy_example.cpp.

Definition at line 65 of file tls_policy.h.

65{};

Referenced by main().

◆ verify_peer

bool kcenon::network::policy::tls_enabled::verify_peer {true}
Examples
tls_policy_example.cpp.

Definition at line 67 of file tls_policy.h.

67{true};

Referenced by main().


The documentation for this struct was generated from the following file: