sniffer_error.h
1 /* sniffer_error.h
2  *
3  * Copyright (C) 2006-2020 wolfSSL Inc.
4  *
5  * This file is part of wolfSSL.
6  *
7  * wolfSSL is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * wolfSSL is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20  */
21 
22 
23 
24 #ifndef WOLFSSL_SNIFFER_ERROR_H
25 #define WOLFSSL_SNIFFER_ERROR_H
26 
27 /* need to have errors as #defines since .rc files can't handle enums */
28 /* need to start at 1 and go in order for same reason */
29 
30 #define MEMORY_STR 1
31 #define NEW_SERVER_STR 2
32 #define IP_CHECK_STR 3
33 #define SERVER_NOT_REG_STR 4
34 #define TCP_CHECK_STR 5
35 #define SERVER_PORT_NOT_REG_STR 6
36 #define RSA_DECRYPT_STR 7
37 #define RSA_DECODE_STR 8
38 #define BAD_CIPHER_SPEC_STR 9
39 #define SERVER_HELLO_INPUT_STR 10
40 
41 #define BAD_SESSION_RESUME_STR 11
42 #define SERVER_DID_RESUMPTION_STR 12
43 #define CLIENT_HELLO_INPUT_STR 13
44 #define CLIENT_RESUME_TRY_STR 14
45 #define HANDSHAKE_INPUT_STR 15
46 #define GOT_HELLO_VERIFY_STR 16
47 #define GOT_SERVER_HELLO_STR 17
48 #define GOT_CERT_REQ_STR 18
49 #define GOT_SERVER_KEY_EX_STR 19
50 #define GOT_CERT_STR 20
51 
52 #define GOT_SERVER_HELLO_DONE_STR 21
53 #define GOT_FINISHED_STR 22
54 #define GOT_CLIENT_HELLO_STR 23
55 #define GOT_CLIENT_KEY_EX_STR 24
56 #define GOT_CERT_VER_STR 25
57 #define GOT_UNKNOWN_HANDSHAKE_STR 26
58 #define NEW_SESSION_STR 27
59 #define BAD_NEW_SSL_STR 28
60 #define GOT_PACKET_STR 29
61 #define NO_DATA_STR 30
62 
63 #define BAD_SESSION_STR 31
64 #define GOT_OLD_CLIENT_HELLO_STR 32
65 #define OLD_CLIENT_INPUT_STR 33
66 #define OLD_CLIENT_OK_STR 34
67 #define BAD_OLD_CLIENT_STR 35
68 #define BAD_RECORD_HDR_STR 36
69 #define RECORD_INPUT_STR 37
70 #define GOT_HANDSHAKE_STR 38
71 #define BAD_HANDSHAKE_STR 39
72 #define GOT_CHANGE_CIPHER_STR 40
73 
74 #define GOT_APP_DATA_STR 41
75 #define BAD_APP_DATA_STR 42
76 #define GOT_ALERT_STR 43
77 #define ANOTHER_MSG_STR 44
78 #define REMOVE_SESSION_STR 45
79 #define KEY_FILE_STR 46
80 #define BAD_IPVER_STR 47
81 #define BAD_PROTO_STR 48
82 #define PACKET_HDR_SHORT_STR 49
83 #define GOT_UNKNOWN_RECORD_STR 50
84 
85 #define BAD_TRACE_FILE_STR 51
86 #define FATAL_ERROR_STR 52
87 #define PARTIAL_INPUT_STR 53
88 #define BUFFER_ERROR_STR 54
89 #define PARTIAL_ADD_STR 55
90 #define DUPLICATE_STR 56
91 #define OUT_OF_ORDER_STR 57
92 #define OVERLAP_DUPLICATE_STR 58
93 #define OVERLAP_REASSEMBLY_BEGIN_STR 59
94 #define OVERLAP_REASSEMBLY_END_STR 60
95 
96 #define MISSED_CLIENT_HELLO_STR 61
97 #define GOT_HELLO_REQUEST_STR 62
98 #define GOT_SESSION_TICKET_STR 63
99 #define BAD_INPUT_STR 64
100 #define BAD_DECRYPT_TYPE 65
101 #define BAD_FINISHED_MSG 66
102 #define BAD_COMPRESSION_STR 67
103 #define BAD_DERIVE_STR 68
104 #define ACK_MISSED_STR 69
105 #define BAD_DECRYPT 70
106 
107 #define DECRYPT_KEYS_NOT_SETUP 71
108 #define CLIENT_HELLO_LATE_KEY_STR 72
109 #define GOT_CERT_STATUS_STR 73
110 #define RSA_KEY_MISSING_STR 74
111 #define NO_SECURE_RENEGOTIATION 75
112 
113 #define BAD_SESSION_STATS 76
114 #define REASSEMBLY_MAX_STR 77
115 #define DROPPING_LOST_FRAG_STR 78
116 #define DROPPING_PARTIAL_RECORD 79
117 #define CLEAR_ACK_FAULT 80
118 
119 #define BAD_DECRYPT_SIZE 81
120 #define EXTENDED_MASTER_HASH_STR 82
121 #define SPLIT_HANDSHAKE_MSG_STR 83
122 #define ECC_DECODE_STR 84
123 #define ECC_PUB_DECODE_STR 85
124 #define WATCH_CB_MISSING_STR 86
125 #define WATCH_HASH_STR 87
126 #define WATCH_FAIL_STR 88
127 #define BAD_CERT_MSG_STR 89
128 #define STORE_DATA_CB_MISSING_STR 90
129 
130 #define NO_DATA_DEST_STR 91
131 #define STORE_DATA_FAIL_STR 92
132 #define CHAIN_INPUT_STR 93
133 /* !!!! also add to msgTable in sniffer.c and .rc file !!!! */
134 
135 
136 #endif /* wolfSSL_SNIFFER_ERROR_H */
137