Skip to content

Mbed TLS platform

File SolidSyslogMbedTlsStreamErrors.h

FileList > Interface > SolidSyslogMbedTlsStreamErrors.h

Error codes and Source identity for the MbedTlsStream adapter.

  • #include "SolidSyslogExternC.h"

Public Types Documentation

SolidSyslogMbedTlsStreamErrors

Detail codes for events whose Source is MbedTlsStreamErrorSource.

enum SolidSyslogMbedTlsStreamErrors {
    SOLIDSYSLOG_MBEDTLS_STREAM_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_MBEDTLS_STREAM_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_MBEDTLS_STREAM_ERROR_DEFAULTS_NOT_APPLIED,
    SOLIDSYSLOG_MBEDTLS_STREAM_ERROR_SESSION_INIT_FAILED,
    SOLIDSYSLOG_MBEDTLS_STREAM_ERROR_SERVER_NAME_NOT_SET,
    SOLIDSYSLOG_MBEDTLS_STREAM_ERROR_HANDSHAKE_REJECTED,
    SOLIDSYSLOG_MBEDTLS_STREAM_ERROR_HANDSHAKE_TIMEOUT,
    SOLIDSYSLOG_MBEDTLS_STREAM_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

MbedTlsStreamErrorSource

Identity for events raised by an MbedTlsStream.

const struct SolidSyslogErrorSource MbedTlsStreamErrorSource;

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