8#include "Arp/System/Core/Enum.hxx"
10namespace Arp {
namespace System {
namespace Commons {
namespace Net
28 EnableTlsv12 = (1 << 1),
29 EnableTlsv13 = (1 << 2),
30 SupportSessionRenegotiation = (1 << 3),
31 CheckLeafCrl = (1 << 4),
32 CheckAllCrl = (1 << 5),
33 TrustPartialChain = (1 << 6)
45 using U = std::underlying_type<TlsOptions>::type;
46 return static_cast<TlsOptions>(
static_cast<U
>(lhs) &
static_cast<U
>(rhs));
51 using U = std::underlying_type<TlsOptions>::type;
52 return static_cast<TlsOptions>(
static_cast<U
>(lhs) |
static_cast<U
>(rhs));
69 using U = std::underlying_type<TlsOptions>::type;
70 return static_cast<TlsOptions>(~static_cast<U>(arg));
76template<>
struct fmt::formatter<
Arp::System::Commons::Net::TlsOptions>:
public fmt::ostream_formatter {};
std::uint32_t uint32
The Arp unsigned integer type of 4 byte size.
Definition: PrimitiveTypes.hpp:33
std::ostream & operator<<(std::ostream &os, const IpAddress &ipAddress)
The ostream operator is used for logging and string formatting.
Definition: IpAddress.cpp:76
std::istream & operator>>(std::istream &is, IpAddress &ipAddress)
The istream operator is used for string parsing.
Definition: IpAddress.cpp:83
TlsOptions
This enum is used to select different options for the TlsSocket class
Definition: TlsOptions.hpp:25
Root namespace for the PLCnext API