| Samsung Internal API reference 2.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

protocol_errors.h
Go to the documentation of this file.
1
9 #ifndef __TEE_PROTOCOL_ERRORS__
10 #define __TEE_PROTOCOL_ERRORS__
11
19 enum protocol_error_code{
20 NO_ERROR = 0, /* TEE_SUCCESS */
21
22 /*
23 * Interworld Communication (IWC) specific errors
24 */
25 TEE_ISOCKET_IWC_ERROR_CHANNEL = 0x81000000,
26 TEE_ISOCKET_IWC_ERROR_TIMEOUT = 0x81000001,
27 TEE_ISOCKET_IWC_ERROR_NOT_IMPLEMENTED = 0x81000002,
28 TEE_ISOCKET_IWC_ERROR_INVALID_VERSION = 0x81000003,
29 TEE_ISOCKET_IWC_ERROR_SWD_CLIENT_AUTH_FAILED = 0x81000004,
31 /*
32 * Network protocol (TCP/UDP) Instance specific errors (usualy from NWd proxy)
33 */
34 TEE_ISOCKET_NET_ERROR_GENERIC = 0x81010000,
35 TEE_ISOCKET_NET_ERROR_BAD_PARAMETERS = 0x81010001,
36 TEE_ISOCKET_NET_ERROR_BUFFER_TOO_SMALL = 0x81010002,
37 TEE_ISOCKET_NET_ERROR_LARGE_BUFFER = 0x81010003,
38 TEE_ISOCKET_NET_ERROR_OUT_OF_RESOURCES = 0x81010004,
39 TEE_ISOCKET_NET_ERROR_OUT_OF_MEMORY = 0x81010005,
40 TEE_ISOCKET_NET_ERROR_HOSTNAME_UNKNOWN = 0x81010006,
41 TEE_ISOCKET_NET_ERROR_HOSTNAME_NOTRESOLVED = 0x81010007,
42 TEE_ISOCKET_NET_ERROR_HOSTNAME_TRYAGAIN = 0x81010008,
43 TEE_ISOCKET_NET_ERROR_COMMUNICATION = 0x81010009,
44 TEE_ISOCKET_NET_ERROR_CONNECTION_REFUSED = 0x8101000A,
45 TEE_ISOCKET_NET_ERROR_NET_UNREACHABLE = 0x8101000B,
46 TEE_ISOCKET_NET_ERROR_REMOTE_CLOSED = 0x8101000C,
47 TEE_ISOCKET_NET_ERROR_TIMEOUT = 0x8101000D,
48 TEE_ISOCKET_NET_ERROR_DATA_REMAIN = 0x8101000E,
50 /*
51 * TLS Instance specific errors
52 */
53 TEE_ISOCKET_TLS_ERROR_CERT_PARSING = 0x80000000,
54 TEE_ISOCKET_TLS_ERROR_CRL_PARSING = 0x80000001,
55 TEE_ISOCKET_TLS_ERROR_CERT_EXPIRED = 0x80000002,
56 TEE_ISOCKET_TLS_ERROR_CERT_SIGN_VERIFICATION = 0x80000003,
57 TEE_ISOCKET_TLS_ERROR_ECDHE_GEN_KEY = 0x81030010,
58 TEE_ISOCKET_TLS_ERROR_ECDHE_SHARED_SECRET = 0x81030011,
59 TEE_ISOCKET_TLS_ERROR_ECDHE_UNSUPPORTED_CURVE = 0x81030012,
60 TEE_ISOCKET_TLS_ERROR_ECDHE_SERIALIZING = 0x81030013,
61 TEE_ISOCKET_TLS_ERROR_CERT_COMMON_NAME_VERIFICATION = 0x81030014,
62 TEE_ISOCKET_TLS_ERROR_UNEXPECTED_MESSAGE = 0x81030015,
63 TEE_ISOCKET_TLS_ERROR_HANDSHAKE_UNEXPECTED_PARAMETER = 0x81030016,
64 TEE_ISOCKET_TLS_ERROR_CERT_IS_TOO_LONG = 0x81030017,
65 TEE_ISOCKET_TLS_ERROR_NO_ALERT_PRESENT = 0x81030018,
66 TEE_ISOCKET_TLS_ERROR_ALERT_PENDING = 0x81030019,
67 TEE_ISOCKET_TLS_ERROR_USER_CANCELED = 0x8103001A,
68 TEE_ISOCKET_TLS_ERROR_CERT_UNKNOWN_CA = 0x8103001B,
69 TEE_ISOCKET_TLS_ERROR_CERT_UNSUPPORTED = 0x8103001C,
70 TEE_ISOCKET_TLS_ERROR_CERT_REVOKED = 0x8103001D,
71 TEE_ISOCKET_TLS_ERROR_CERT_STATUS_UNKNOWN = 0x8103001E,
73 /*
74 * TLS "Alert recieved" error codes
75 */
76 TEE_ISOCKET_TLS_ALERT_CLOSE_NOTIFY = 0x81031000,
77 TEE_ISOCKET_TLS_ALERT_UNEXPECTED_MSG = 0x81031010,
78 TEE_ISOCKET_TLS_ALERT_BAD_RECORD_MAC = 0x81031020,
79 TEE_ISOCKET_TLS_ALERT_DECRYPT_FAILED = 0x81031021,
80 TEE_ISOCKET_TLS_ALERT_RECORD_OVERFLOW = 0x81031022,
81 TEE_ISOCKET_TLS_ALERT_DECOMP_FAILED = 0x81031030,
82 TEE_ISOCKET_TLS_ALERT_HANDSHAKE_FAILED = 0x81031040,
83 TEE_ISOCKET_TLS_ALERT_NO_CERTIFICATE = 0x81031041,
84 TEE_ISOCKET_TLS_ALERT_BAD_CERTIFICATE = 0x81031042,
85 TEE_ISOCKET_TLS_ALERT_UNSUPPORTED_CERT = 0x81031043,
86 TEE_ISOCKET_TLS_ALERT_CERT_REVOKED = 0x81031044,
87 TEE_ISOCKET_TLS_ALERT_CERT_EXPIRED = 0x81031045,
88 TEE_ISOCKET_TLS_ALERT_CERT_UNKNOWN = 0x81031046,
89 TEE_ISOCKET_TLS_ALERT_ILLEGAL_PARAMETER = 0x81031047,
90 TEE_ISOCKET_TLS_ALERT_UNKNOWN_CA = 0x81031048,
91 TEE_ISOCKET_TLS_ALERT_ACCESS_DENIED = 0x81031049,
92 TEE_ISOCKET_TLS_ALERT_DECODE_ERROR = 0x81031050,
93 TEE_ISOCKET_TLS_ALERT_DECRYPT_ERROR = 0x81031051,
94 TEE_ISOCKET_TLS_ALERT_EXPORT_RESTRICTED = 0x81031060,
95 TEE_ISOCKET_TLS_ALERT_PROTOCOL_VERSION = 0x81031070,
96 TEE_ISOCKET_TLS_ALERT_INSUFFICIENT_SECURITY = 0x81031071,
97 TEE_ISOCKET_TLS_ALERT_INTERNAL_ERROR = 0x81031080,
98 TEE_ISOCKET_TLS_ALERT_INAPPROPRIATE_FALLBACK = 0x81031086,
99 TEE_ISOCKET_TLS_ALERT_USER_CANCELED = 0x81031090,
100 TEE_ISOCKET_TLS_ALERT_NO_RENEGOTIATION = 0x81031100,
101 TEE_ISOCKET_TLS_ALERT_MISSING_EXTENSION = 0x81031109,
102 TEE_ISOCKET_TLS_ALERT_UNSUPPORTED_EXTENSION = 0x81031110,
103 TEE_ISOCKET_TLS_ALERT_CERT_UNOBTAINABLE = 0x81031111,
104 TEE_ISOCKET_TLS_ALERT_UNRECOGNIZED_NAME = 0x81031112,
105 TEE_ISOCKET_TLS_ALERT_BAD_CERT_STATUS_RESPONSE = 0x81031113,
106 TEE_ISOCKET_TLS_ALERT_BAD_CERT_HASH_VALUE = 0x81031114,
107 TEE_ISOCKET_TLS_ALERT_UNKNOWN_PSK_IDENTITY = 0x81031115,
108 TEE_ISOCKET_TLS_ALERT_CERT_REQUIRED = 0x81031116,
109 };
110
111 #endif /* !__TEE_PROTOCOL_ERRORS__ */
112
TEE_ISOCKET_TLS_ERROR_CERT_UNSUPPORTED
Definition: protocol_errors.h:69
TEE_ISOCKET_TLS_ALERT_UNKNOWN_PSK_IDENTITY
Definition: protocol_errors.h:107
TEE_ISOCKET_TLS_ERROR_ECDHE_SERIALIZING
Definition: protocol_errors.h:60
TEE_ISOCKET_IWC_ERROR_TIMEOUT
Definition: protocol_errors.h:26
TEE_ISOCKET_TLS_ERROR_ECDHE_GEN_KEY
Definition: protocol_errors.h:57
TEE_ISOCKET_TLS_ERROR_HANDSHAKE_UNEXPECTED_PARAMETER
Definition: protocol_errors.h:63
TEE_ISOCKET_TLS_ALERT_UNSUPPORTED_EXTENSION
Definition: protocol_errors.h:102
TEE_ISOCKET_NET_ERROR_COMMUNICATION
Definition: protocol_errors.h:43
TEE_ISOCKET_TLS_ALERT_BAD_RECORD_MAC
Definition: protocol_errors.h:78
TEE_ISOCKET_TLS_ALERT_DECOMP_FAILED
Definition: protocol_errors.h:81
TEE_ISOCKET_TLS_ERROR_CERT_UNKNOWN_CA
Definition: protocol_errors.h:68
TEE_ISOCKET_TLS_ALERT_CLOSE_NOTIFY
Definition: protocol_errors.h:76
TEE_ISOCKET_TLS_ERROR_CERT_PARSING
Definition: protocol_errors.h:53
TEE_ISOCKET_TLS_ERROR_CERT_EXPIRED
Definition: protocol_errors.h:55
TEE_ISOCKET_IWC_ERROR_CHANNEL
Definition: protocol_errors.h:25
TEE_ISOCKET_TLS_ERROR_ALERT_PENDING
Definition: protocol_errors.h:66
TEE_ISOCKET_TLS_ALERT_DECODE_ERROR
Definition: protocol_errors.h:92
TEE_ISOCKET_NET_ERROR_HOSTNAME_NOTRESOLVED
Definition: protocol_errors.h:41
TEE_ISOCKET_TLS_ALERT_UNKNOWN_CA
Definition: protocol_errors.h:90
TEE_ISOCKET_TLS_ALERT_ILLEGAL_PARAMETER
Definition: protocol_errors.h:89
TEE_ISOCKET_TLS_ERROR_ECDHE_UNSUPPORTED_CURVE
Definition: protocol_errors.h:59
protocol_error_code
protocol_error_code
Propriate protocol specific error codes. According to GPD_SPE_010 specification, TEE error code range...
Definition: protocol_errors.h:19
TEE_ISOCKET_TLS_ALERT_MISSING_EXTENSION
Definition: protocol_errors.h:101
TEE_ISOCKET_TLS_ALERT_NO_CERTIFICATE
Definition: protocol_errors.h:83
TEE_ISOCKET_NET_ERROR_OUT_OF_MEMORY
Definition: protocol_errors.h:39
TEE_ISOCKET_NET_ERROR_NET_UNREACHABLE
Definition: protocol_errors.h:45
TEE_ISOCKET_TLS_ALERT_UNRECOGNIZED_NAME
Definition: protocol_errors.h:104
TEE_ISOCKET_TLS_ALERT_CERT_REQUIRED
Definition: protocol_errors.h:108
TEE_ISOCKET_TLS_ERROR_NO_ALERT_PRESENT
Definition: protocol_errors.h:65
TEE_ISOCKET_TLS_ALERT_DECRYPT_ERROR
Definition: protocol_errors.h:93
TEE_ISOCKET_NET_ERROR_TIMEOUT
Definition: protocol_errors.h:47
TEE_ISOCKET_TLS_ERROR_CERT_STATUS_UNKNOWN
Definition: protocol_errors.h:71
TEE_ISOCKET_TLS_ALERT_USER_CANCELED
Definition: protocol_errors.h:99
TEE_ISOCKET_TLS_ALERT_CERT_UNOBTAINABLE
Definition: protocol_errors.h:103
TEE_ISOCKET_TLS_ALERT_EXPORT_RESTRICTED
Definition: protocol_errors.h:94
TEE_ISOCKET_IWC_ERROR_INVALID_VERSION
Definition: protocol_errors.h:28
TEE_ISOCKET_TLS_ERROR_CERT_IS_TOO_LONG
Definition: protocol_errors.h:64
TEE_ISOCKET_NET_ERROR_GENERIC
Definition: protocol_errors.h:34
TEE_ISOCKET_TLS_ALERT_INTERNAL_ERROR
Definition: protocol_errors.h:97
TEE_ISOCKET_TLS_ALERT_CERT_EXPIRED
Definition: protocol_errors.h:87
TEE_ISOCKET_NET_ERROR_REMOTE_CLOSED
Definition: protocol_errors.h:46
TEE_ISOCKET_IWC_ERROR_SWD_CLIENT_AUTH_FAILED
Definition: protocol_errors.h:29
TEE_ISOCKET_TLS_ERROR_UNEXPECTED_MESSAGE
Definition: protocol_errors.h:62
TEE_ISOCKET_TLS_ALERT_CERT_REVOKED
Definition: protocol_errors.h:86
TEE_ISOCKET_TLS_ERROR_CERT_COMMON_NAME_VERIFICATION
Definition: protocol_errors.h:61
TEE_ISOCKET_TLS_ALERT_UNEXPECTED_MSG
Definition: protocol_errors.h:77
TEE_ISOCKET_NET_ERROR_DATA_REMAIN
Definition: protocol_errors.h:48
TEE_ISOCKET_NET_ERROR_HOSTNAME_TRYAGAIN
Definition: protocol_errors.h:42
TEE_ISOCKET_TLS_ALERT_CERT_UNKNOWN
Definition: protocol_errors.h:88
TEE_ISOCKET_NET_ERROR_CONNECTION_REFUSED
Definition: protocol_errors.h:44
TEE_ISOCKET_TLS_ALERT_BAD_CERT_STATUS_RESPONSE
Definition: protocol_errors.h:105
TEE_ISOCKET_TLS_ERROR_CERT_SIGN_VERIFICATION
Definition: protocol_errors.h:56
TEE_ISOCKET_TLS_ALERT_INSUFFICIENT_SECURITY
Definition: protocol_errors.h:96
TEE_ISOCKET_IWC_ERROR_NOT_IMPLEMENTED
Definition: protocol_errors.h:27
TEE_ISOCKET_TLS_ALERT_UNSUPPORTED_CERT
Definition: protocol_errors.h:85
TEE_ISOCKET_TLS_ALERT_HANDSHAKE_FAILED
Definition: protocol_errors.h:82
TEE_ISOCKET_TLS_ERROR_CERT_REVOKED
Definition: protocol_errors.h:70
TEE_ISOCKET_TLS_ERROR_ECDHE_SHARED_SECRET
Definition: protocol_errors.h:58
TEE_ISOCKET_NET_ERROR_LARGE_BUFFER
Definition: protocol_errors.h:37
TEE_ISOCKET_TLS_ALERT_RECORD_OVERFLOW
Definition: protocol_errors.h:80
TEE_ISOCKET_TLS_ALERT_BAD_CERTIFICATE
Definition: protocol_errors.h:84
TEE_ISOCKET_TLS_ALERT_INAPPROPRIATE_FALLBACK
Definition: protocol_errors.h:98
TEE_ISOCKET_NET_ERROR_HOSTNAME_UNKNOWN
Definition: protocol_errors.h:40
TEE_ISOCKET_TLS_ERROR_CRL_PARSING
Definition: protocol_errors.h:54
TEE_ISOCKET_NET_ERROR_OUT_OF_RESOURCES
Definition: protocol_errors.h:38
TEE_ISOCKET_TLS_ALERT_ACCESS_DENIED
Definition: protocol_errors.h:91
TEE_ISOCKET_TLS_ERROR_USER_CANCELED
Definition: protocol_errors.h:67
TEE_ISOCKET_NET_ERROR_BUFFER_TOO_SMALL
Definition: protocol_errors.h:36
TEE_ISOCKET_TLS_ALERT_NO_RENEGOTIATION
Definition: protocol_errors.h:100
TEE_ISOCKET_NET_ERROR_BAD_PARAMETERS
Definition: protocol_errors.h:35
TEE_ISOCKET_TLS_ALERT_BAD_CERT_HASH_VALUE
Definition: protocol_errors.h:106
TEE_ISOCKET_TLS_ALERT_PROTOCOL_VERSION
Definition: protocol_errors.h:95
TEE_ISOCKET_TLS_ALERT_DECRYPT_FAILED
Definition: protocol_errors.h:79