PLCnext API Documentation 25.0.2.69
TlsAlertType.hpp
1
2//
3// Copyright Phoenix Contact GmbH & Co. KG
4//
6#pragma once
8#include "Arp/System/Core/Enum.hxx"
9
10namespace Arp { namespace System { namespace Commons { namespace Net
11{
12
15enum class TlsAlertType
16{
20 None = 256, //256 is not allowed in TLS Alerts use it as None type of arp
27 CloseNotify = 0,
28
37
47 BadRecordMac = 20,
48
56
66 RecordOverflow = 22,
67
77
85
91 NoCertificate = 41,
92
98 BadCertificate = 42,
99
105
111
117
123
131 IllegalParameter = 47,
132
140 UnknownCa = 48,
141
148 AccessDenied = 49,
149
159 DecodeError = 50,
160
167 DecryptError = 51,
168
175
182
188 ProtocolVersion = 70,
189
197
204 InternalError = 80,
205
212
222 UserCanceled = 90,
223
238 NoRenegotiation = 100,
239
246 MissingExtension = 109,
247
257
267
274 UnrecognizedName = 112,
275
283
294
303 UnknownPskIdentity = 115,
304
311
319};
320
322// global stream operators of enum TlsAlertType for logging and parsing
323ARP_CXX_SYMBOL_EXPORT std::ostream& operator<<(std::ostream& os, TlsAlertType value);
324ARP_CXX_SYMBOL_EXPORT std::istream& operator>>(std::istream& is, TlsAlertType& value);
325
326}}}} // end of namespace Arp::System::Commons::Net
327
328template<> struct fmt::formatter<Arp::System::Commons::Net::TlsAlertType>: public fmt::ostream_formatter {};
std::ostream & operator<<(std::ostream &os, const IpAddress &ipAddress)
The ostream operator is used for logging and string formatting.
Definition: IpAddress.cpp:76
TlsAlertType
This enum defines the TLS alert types
Definition: TlsAlertType.hpp:16
@ UnrecognizedName
Sent by servers when no server exists identified by the name provided by the client via the "server_n...
@ InappropriateFallback
Sent by a server in response to an invalid connection retry attempt from a client(see[RFC7507])....
@ BadCertificateHashValue
The server MUST check that the SHA-1 hash of the contents of the object retrieved from that URL(after...
@ BadRecordMac
This alert is returned if a record is received which cannot be deprotected.Because AEAD algorithms co...
@ DecompressionFailure
Only TLS 1.2 The decompression function received improper input (e.g., data that would expand to exce...
@ DecodeError
A message could not be decoded because some field was out of the specified range or the length of the...
@ TooManyCidsRequested
Used by DTLS 1.3 see: RFC9147 Endpoints MAY handle an excessive number of RequestConnectionId message...
@ CertificateExpired
A certificate has expired or is not currently valid. RFC 8446: https://www.rfc-editor....
@ NoCertificate
This alert was used in SSLv3 but not any version of TLS. It MUST NOT be sent by compliant implementat...
@ NoRenegotiation
Sent by the client in response to a hello request or by the server in response to a client hello afte...
@ UnsupportedExtension
Sent by endpoints receiving any handshake message containing an extension known to be prohibited for ...
@ CertificateRevoked
A certificate was revoked by its signer. RFC 8446: https://www.rfc-editor.org/rfc/rfc8446....
@ UnknownPskIdentity
Sent by servers when PSK key establishment is desired but no acceptable PSK identity is provided by t...
@ CertificateUnknown
Some other (unspecified) issue arose in processing the certificate, rendering it unacceptable....
@ NoApplicationProtocol
Sent by servers when a client "application_layer_protocol_negotiation" extension advertises only prot...
@ ExportRestriction
This alert was used in some earlier versions of TLS. It MUST NOT be sent by compliant implementations...
@ UnsupportedCertificate
A certificate was of an unsupported type. RFC 8446: https://www.rfc-editor.org/rfc/rfc8446....
@ BadCertificateStatusResponse
Sent by clients when an invalid or unacceptable OCSP response is provided by the server via the "stat...
@ ProtocolVersion
The protocol version the peer has attempted to negotiate is recognized but not supported....
@ IllegalParameter
A field in the handshake was incorrect or inconsistent with other fields.This alert is used for error...
@ UnexpectedMessage
An inappropriate message (e.g., the wrong handshake message, premature Application Data,...
@ CloseNotify
This alert notifies the recipient that the sender will not send any more messages on this connection....
@ DecryptError
A handshake (not record layer) cryptographic operation failed, including being unable to correctly ve...
@ AccessDenied
A valid certificate or PSK was received, but when access control was applied, the sender decided not ...
@ RecordOverflow
A TLSCiphertext record was received that had a length more than 2 ^ 14 + 256 bytes,...
@ DecryptionFailed
This alert was used in some earlier versions of TLS, and may have permitted certain attacks against t...
@ UserCanceled
This alert notifies the recipient that the sender is canceling the handshake for some reason unrelate...
@ CertificateRequired
Sent by servers when a client certificate is desired but none was provided by the client....
@ HandshakeFailure
Receipt of a "handshake_failure" alert message indicates that the sender was unable to negotiate an a...
@ InsufficientSecurity
Returned instead of "handshake_failure" when a negotiation has failed specifically because the server...
@ BadCertificate
A certificate was corrupt, contained signatures that did not verify correctly, etc....
@ MissingExtension
Sent by endpoints that receive a handshake message not containing an extension that is mandatory to s...
@ UnknownCa
A valid certificate chain or partial chain was received, but the certificate was not accepted because...
@ CertificateUnobtainable
If a server is unable to obtain certificates in a given CertificateURL, it MUST send a fatal certific...
std::istream & operator>>(std::istream &is, IpAddress &ipAddress)
The istream operator is used for string parsing.
Definition: IpAddress.cpp:83
Root namespace for the PLCnext API