File SolidSyslogMbedTlsStreamErrors.h¶
FileList > Interface > SolidSyslogMbedTlsStreamErrors.h
Go to the source code of this file
Error codes and Source identity for the MbedTlsStream adapter.
#include "ExternC.h"
Public Types¶
| Type | Name |
|---|---|
| enum | SolidSyslogMbedTlsStreamErrors Detail codes for events whose Source is MbedTlsStreamErrorSource. |
Public Attributes¶
| Type | Name |
|---|---|
| const struct SolidSyslogErrorSource | MbedTlsStreamErrorSource Identity for events raised by an MbedTlsStream. |
Public Types Documentation¶
enum SolidSyslogMbedTlsStreamErrors¶
Detail codes for events whose Source is MbedTlsStreamErrorSource.
enum SolidSyslogMbedTlsStreamErrors {
MBEDTLSSTREAM_ERROR_POOL_EXHAUSTED,
MBEDTLSSTREAM_ERROR_UNKNOWN_DESTROY,
MBEDTLSSTREAM_ERROR_DEFAULTS_NOT_APPLIED,
MBEDTLSSTREAM_ERROR_SESSION_INIT_FAILED,
MBEDTLSSTREAM_ERROR_SERVER_NAME_NOT_SET,
MBEDTLSSTREAM_ERROR_HANDSHAKE_REJECTED,
MBEDTLSSTREAM_ERROR_HANDSHAKE_TIMEOUT,
MBEDTLSSTREAM_ERROR_MAX
};
A handler reads these off event->Detail after matching event->Source; the members name their own fault. HANDSHAKE_REJECTED and HANDSHAKE_TIMEOUT are distinct so a handler can tell a peer that refused the handshake from one that never finished it within the bounded budget.
Public Attributes Documentation¶
variable MbedTlsStreamErrorSource¶
Identity for events raised by an MbedTlsStream.
A handler matches by address (event->Source == &MbedTlsStreamErrorSource), then reads event->Detail as an enum SolidSyslogMbedTlsStreamErrors.
The documentation for this class was generated from the following file Platform/MbedTls/Interface/SolidSyslogMbedTlsStreamErrors.h