File error_codes.h
FileList > docs > sandwich_c > error_codes.h
Go to the source code of this file
Sandwich errors specification.
Public Types
Public Types Documentation
enum SandwichALPNError
enum SandwichALPNError {
SANDWICH_ALPNERROR_LENGTH_ERROR = 0,
SANDWICH_ALPNERROR_INVALID_STRING = 1
};
typedef SandwichALPNError
enum SandwichAPIError
enum SandwichAPIError {
SANDWICH_APIERROR_CONFIGURATION = 0,
SANDWICH_APIERROR_SOCKET = 1,
SANDWICH_APIERROR_TUNNEL = 2
};
typedef SandwichAPIError
enum SandwichASN1Error
typedef 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
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
enum SandwichDataSourceError
enum SandwichDataSourceError {
SANDWICH_DATASOURCEERROR_EMPTY = 0,
SANDWICH_DATASOURCEERROR_INVALID_CASE = 1,
SANDWICH_DATASOURCEERROR_NOT_FOUND = 2
};
typedef 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
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
enum SandwichKEMError
typedef 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
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
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
enum SandwichSystemError
enum SandwichSystemError {
SANDWICH_SYSTEMERROR_MEMORY = 0,
SANDWICH_SYSTEMERROR_INTEGER_OVERFLOW = 1,
SANDWICH_SYSTEMERROR_BACKEND = 2
};
typedef 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
enum SandwichTunnelError
enum SandwichTunnelError {
SANDWICH_TUNNELERROR_INVALID = 0,
SANDWICH_TUNNELERROR_VERIFIER = 1,
SANDWICH_TUNNELERROR_UNKNOWN = 2
};
typedef SandwichTunnelError
The documentation for this class was generated from the following file docs/sandwich_c/error_codes.h