Skip to content

File error_codes.h

FileList > docs > sandwich_c > error_codes.h

Go to the source code of this file

Sandwich errors specification.

Public Types

Type Name
enum SandwichALPNError
Enum ALPNError.
typedef enum SandwichALPNError SandwichALPNError
enum SandwichAPIError
Enum APIError.
typedef enum SandwichAPIError SandwichAPIError
enum SandwichASN1Error
Enum ASN1Error.
typedef enum SandwichASN1Error SandwichASN1Error
enum SandwichCertificateError
Enum CertificateError.
typedef enum SandwichCertificateError SandwichCertificateError
enum SandwichConfigurationError
Enum ConfigurationError.
typedef enum SandwichConfigurationError SandwichConfigurationError
enum SandwichDataSourceError
Enum DataSourceError.
typedef enum SandwichDataSourceError SandwichDataSourceError
enum SandwichErrorKind
Enum ErrorKind.
typedef enum SandwichErrorKind SandwichErrorKind
enum SandwichHandshakeError
Enum HandshakeError.
typedef enum SandwichHandshakeError SandwichHandshakeError
enum SandwichKEMError
Enum KEMError.
typedef enum SandwichKEMError SandwichKEMError
enum SandwichPrivateKeyError
Enum PrivateKeyError.
typedef enum SandwichPrivateKeyError SandwichPrivateKeyError
enum SandwichProtobufError
Enum ProtobufError.
typedef enum SandwichProtobufError SandwichProtobufError
enum SandwichSocketError
Enum SocketError.
typedef enum SandwichSocketError SandwichSocketError
enum SandwichSystemError
Enum SystemError.
typedef enum SandwichSystemError SandwichSystemError
enum SandwichTLSConfigurationError
Enum TLSConfigurationError.
typedef enum SandwichTLSConfigurationError SandwichTLSConfigurationError
enum SandwichTunnelError
Enum TunnelError.
typedef enum SandwichTunnelError SandwichTunnelError

Public Types Documentation

enum SandwichALPNError

enum SandwichALPNError {
    SANDWICH_ALPNERROR_LENGTH_ERROR = 0,
    SANDWICH_ALPNERROR_INVALID_STRING = 1
};

typedef SandwichALPNError

typedef enum SandwichALPNError SandwichALPNError;

enum SandwichAPIError

enum SandwichAPIError {
    SANDWICH_APIERROR_CONFIGURATION = 0,
    SANDWICH_APIERROR_SOCKET = 1,
    SANDWICH_APIERROR_TUNNEL = 2
};

typedef SandwichAPIError

typedef enum SandwichAPIError SandwichAPIError;

enum SandwichASN1Error

enum SandwichASN1Error {
    SANDWICH_ASN1ERROR_INVALID_FORMAT = 0,
    SANDWICH_ASN1ERROR_MALFORMED = 1
};

typedef SandwichASN1Error

typedef enum SandwichASN1Error SandwichASN1Error;

enum SandwichCertificateError

enum SandwichCertificateError {
    SANDWICH_CERTIFICATEERROR_MALFORMED = 0,
    SANDWICH_CERTIFICATEERROR_EXPIRED = 1,
    SANDWICH_CERTIFICATEERROR_NOT_FOUND = 2,
    SANDWICH_CERTIFICATEERROR_UNKNOWN = 3,
    SANDWICH_CERTIFICATEERROR_UNSUPPORTED = 4
};

typedef SandwichCertificateError

typedef enum SandwichCertificateError SandwichCertificateError;

enum SandwichConfigurationError

enum SandwichConfigurationError {
    SANDWICH_CONFIGURATIONERROR_INVALID_IMPLEMENTATION = 0,
    SANDWICH_CONFIGURATIONERROR_UNSUPPORTED_IMPLEMENTATION = 1,
    SANDWICH_CONFIGURATIONERROR_INVALID = 2,
    SANDWICH_CONFIGURATIONERROR_INVALID_LISTENER = 3
};

typedef SandwichConfigurationError

typedef enum SandwichConfigurationError SandwichConfigurationError;

enum SandwichDataSourceError

enum SandwichDataSourceError {
    SANDWICH_DATASOURCEERROR_EMPTY = 0,
    SANDWICH_DATASOURCEERROR_INVALID_CASE = 1,
    SANDWICH_DATASOURCEERROR_NOT_FOUND = 2
};

typedef SandwichDataSourceError

typedef enum SandwichDataSourceError SandwichDataSourceError;

enum SandwichErrorKind

enum SandwichErrorKind {
    SANDWICH_ERRORKIND_API = 0,
    SANDWICH_ERRORKIND_CONFIGURATION = 1,
    SANDWICH_ERRORKIND_TLS_CONFIGURATION = 2,
    SANDWICH_ERRORKIND_CERTIFICATE = 3,
    SANDWICH_ERRORKIND_SYSTEM = 4,
    SANDWICH_ERRORKIND_SOCKET = 5,
    SANDWICH_ERRORKIND_PROTOBUF = 6,
    SANDWICH_ERRORKIND_PRIVATE_KEY = 7,
    SANDWICH_ERRORKIND_ASN1 = 8,
    SANDWICH_ERRORKIND_DATA_SOURCE = 9,
    SANDWICH_ERRORKIND_KEM = 10,
    SANDWICH_ERRORKIND_HANDSHAKE = 11,
    SANDWICH_ERRORKIND_TUNNEL = 12,
    SANDWICH_ERRORKIND_ALPN = 13,
    SANDWICH_ERRORKIND_IO = 14
};

typedef SandwichErrorKind

typedef enum SandwichErrorKind SandwichErrorKind;

enum SandwichHandshakeError

enum SandwichHandshakeError {
    SANDWICH_HANDSHAKEERROR_INVALID_SERVER_NAME = 0,
    SANDWICH_HANDSHAKEERROR_CERTIFICATE_VERIFICATION_FAILED = 1,
    SANDWICH_HANDSHAKEERROR_CERTIFICATE_EXPIRED = 2,
    SANDWICH_HANDSHAKEERROR_CERTIFICATE_REVOKED = 3,
    SANDWICH_HANDSHAKEERROR_INVALID_CERTIFICATE = 4,
    SANDWICH_HANDSHAKEERROR_CERTIFICATE_SIGNATURE_VERIFICATION_FAILED = 5,
    SANDWICH_HANDSHAKEERROR_UNKNOWN_ERROR = 6,
    SANDWICH_HANDSHAKEERROR_DEPTH_EXCEEDED = 7,
    SANDWICH_HANDSHAKEERROR_UNSUPPORTED_PROTOCOL = 8,
    SANDWICH_HANDSHAKEERROR_NO_SHARED_CIPHER = 9,
    SANDWICH_HANDSHAKEERROR_NO_SUITABLE_KEY_SHARE = 10
};

typedef SandwichHandshakeError

typedef enum SandwichHandshakeError SandwichHandshakeError;

enum SandwichKEMError

enum SandwichKEMError {
    SANDWICH_KEMERROR_INVALID = 0,
    SANDWICH_KEMERROR_TOO_MANY = 1
};

typedef SandwichKEMError

typedef enum SandwichKEMError SandwichKEMError;

enum SandwichPrivateKeyError

enum SandwichPrivateKeyError {
    SANDWICH_PRIVATEKEYERROR_MALFORMED = 0,
    SANDWICH_PRIVATEKEYERROR_NOT_FOUND = 1,
    SANDWICH_PRIVATEKEYERROR_UNKNOWN = 2,
    SANDWICH_PRIVATEKEYERROR_UNSUPPORTED = 3,
    SANDWICH_PRIVATEKEYERROR_NOT_SERVER = 4
};

typedef SandwichPrivateKeyError

typedef enum SandwichPrivateKeyError SandwichPrivateKeyError;

enum SandwichProtobufError

enum SandwichProtobufError {
    SANDWICH_PROTOBUFERROR_EMPTY = 0,
    SANDWICH_PROTOBUFERROR_TOO_BIG = 1,
    SANDWICH_PROTOBUFERROR_PARSE_FAILED = 2,
    SANDWICH_PROTOBUFERROR_NULLPTR = 3,
    SANDWICH_PROTOBUFERROR_INVALID_ARGUMENT = 4
};

typedef SandwichProtobufError

typedef enum SandwichProtobufError SandwichProtobufError;

enum SandwichSocketError

enum SandwichSocketError {
    SANDWICH_SOCKETERROR_BAD_FD = 0,
    SANDWICH_SOCKETERROR_CREATION_FAILED = 1,
    SANDWICH_SOCKETERROR_BAD_NETADDR = 2,
    SANDWICH_SOCKETERROR_NETADDR_UNKNOWN = 3,
    SANDWICH_SOCKETERROR_FSTAT_FAILED = 4,
    SANDWICH_SOCKETERROR_NOT_SOCK = 5,
    SANDWICH_SOCKETERROR_GETSOCKNAME_FAILED = 6,
    SANDWICH_SOCKETERROR_SETSOCKOPT_FAILED = 7,
    SANDWICH_SOCKETERROR_INVALID_AI_FAMILY = 8
};

typedef SandwichSocketError

typedef enum SandwichSocketError SandwichSocketError;

enum SandwichSystemError

enum SandwichSystemError {
    SANDWICH_SYSTEMERROR_MEMORY = 0,
    SANDWICH_SYSTEMERROR_INTEGER_OVERFLOW = 1,
    SANDWICH_SYSTEMERROR_BACKEND = 2
};

typedef SandwichSystemError

typedef enum SandwichSystemError SandwichSystemError;

enum SandwichTLSConfigurationError

enum SandwichTLSConfigurationError {
    SANDWICH_TLSCONFIGURATIONERROR_UNSUPPORTED_IMPLEMENTATION = 0,
    SANDWICH_TLSCONFIGURATIONERROR_INVALID_CASE = 1,
    SANDWICH_TLSCONFIGURATIONERROR_EMPTY = 2,
    SANDWICH_TLSCONFIGURATIONERROR_UNSUPPORTED_PROTOCOL_VERSION = 3,
    SANDWICH_TLSCONFIGURATIONERROR_PRIVATE_KEY_INCONSISTENT_WITH_CERTIFICATE = 4,
    SANDWICH_TLSCONFIGURATIONERROR_INVALID = 5,
    SANDWICH_TLSCONFIGURATIONERROR_UNSUPPORTED_CIPHERSUITE = 6,
    SANDWICH_TLSCONFIGURATIONERROR_UNSUPPORTED_CONTROL_CHARACTERS = 7
};

typedef SandwichTLSConfigurationError

typedef enum SandwichTLSConfigurationError SandwichTLSConfigurationError;

enum SandwichTunnelError

enum SandwichTunnelError {
    SANDWICH_TUNNELERROR_INVALID = 0,
    SANDWICH_TUNNELERROR_VERIFIER = 1,
    SANDWICH_TUNNELERROR_UNKNOWN = 2
};

typedef SandwichTunnelError

typedef enum SandwichTunnelError SandwichTunnelError;

The documentation for this class was generated from the following file docs/sandwich_c/error_codes.h