sniffer_error.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /* sniffer_error.h
  2. *
  3. * Copyright (C) 2006-2023 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. #ifndef WOLFSSL_SNIFFER_ERROR_H
  22. #define WOLFSSL_SNIFFER_ERROR_H
  23. /* General Sniffer Error */
  24. #define WOLFSSL_SNIFFER_ERROR -1
  25. /* Sniffer failed and is in Fatal state */
  26. #define WOLFSSL_SNIFFER_FATAL_ERROR -2
  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. #define MEMORY_STR 1
  30. #define NEW_SERVER_STR 2
  31. #define IP_CHECK_STR 3
  32. #define SERVER_NOT_REG_STR 4
  33. #define TCP_CHECK_STR 5
  34. #define SERVER_PORT_NOT_REG_STR 6
  35. #define RSA_DECRYPT_STR 7
  36. #define RSA_DECODE_STR 8
  37. #define BAD_CIPHER_SPEC_STR 9
  38. #define SERVER_HELLO_INPUT_STR 10
  39. #define BAD_SESSION_RESUME_STR 11
  40. #define SERVER_DID_RESUMPTION_STR 12
  41. #define CLIENT_HELLO_INPUT_STR 13
  42. #define CLIENT_RESUME_TRY_STR 14
  43. #define HANDSHAKE_INPUT_STR 15
  44. #define GOT_HELLO_VERIFY_STR 16
  45. #define GOT_SERVER_HELLO_STR 17
  46. #define GOT_CERT_REQ_STR 18
  47. #define GOT_SERVER_KEY_EX_STR 19
  48. #define GOT_CERT_STR 20
  49. #define GOT_SERVER_HELLO_DONE_STR 21
  50. #define GOT_FINISHED_STR 22
  51. #define GOT_CLIENT_HELLO_STR 23
  52. #define GOT_CLIENT_KEY_EX_STR 24
  53. #define GOT_CERT_VER_STR 25
  54. #define GOT_UNKNOWN_HANDSHAKE_STR 26
  55. #define NEW_SESSION_STR 27
  56. #define BAD_NEW_SSL_STR 28
  57. #define GOT_PACKET_STR 29
  58. #define NO_DATA_STR 30
  59. #define BAD_SESSION_STR 31
  60. #define GOT_OLD_CLIENT_HELLO_STR 32
  61. #define OLD_CLIENT_INPUT_STR 33
  62. #define OLD_CLIENT_OK_STR 34
  63. #define BAD_OLD_CLIENT_STR 35
  64. #define BAD_RECORD_HDR_STR 36
  65. #define RECORD_INPUT_STR 37
  66. #define GOT_HANDSHAKE_STR 38
  67. #define BAD_HANDSHAKE_STR 39
  68. #define GOT_CHANGE_CIPHER_STR 40
  69. #define GOT_APP_DATA_STR 41
  70. #define BAD_APP_DATA_STR 42
  71. #define GOT_ALERT_STR 43
  72. #define ANOTHER_MSG_STR 44
  73. #define REMOVE_SESSION_STR 45
  74. #define KEY_FILE_STR 46
  75. #define BAD_IPVER_STR 47
  76. #define BAD_PROTO_STR 48
  77. #define PACKET_HDR_SHORT_STR 49
  78. #define GOT_UNKNOWN_RECORD_STR 50
  79. #define BAD_TRACE_FILE_STR 51
  80. #define FATAL_ERROR_STR 52
  81. #define PARTIAL_INPUT_STR 53
  82. #define BUFFER_ERROR_STR 54
  83. #define PARTIAL_ADD_STR 55
  84. #define DUPLICATE_STR 56
  85. #define OUT_OF_ORDER_STR 57
  86. #define OVERLAP_DUPLICATE_STR 58
  87. #define OVERLAP_REASSEMBLY_BEGIN_STR 59
  88. #define OVERLAP_REASSEMBLY_END_STR 60
  89. #define MISSED_CLIENT_HELLO_STR 61
  90. #define GOT_HELLO_REQUEST_STR 62
  91. #define GOT_SESSION_TICKET_STR 63
  92. #define BAD_INPUT_STR 64
  93. #define BAD_DECRYPT_TYPE 65
  94. #define BAD_FINISHED_MSG 66
  95. #define BAD_COMPRESSION_STR 67
  96. #define BAD_DERIVE_STR 68
  97. #define ACK_MISSED_STR 69
  98. #define BAD_DECRYPT 70
  99. #define DECRYPT_KEYS_NOT_SETUP 71
  100. #define CLIENT_HELLO_LATE_KEY_STR 72
  101. #define GOT_CERT_STATUS_STR 73
  102. #define RSA_KEY_MISSING_STR 74
  103. #define NO_SECURE_RENEGOTIATION 75
  104. #define BAD_SESSION_STATS 76
  105. #define REASSEMBLY_MAX_STR 77
  106. #define DROPPING_LOST_FRAG_STR 78
  107. #define DROPPING_PARTIAL_RECORD 79
  108. #define CLEAR_ACK_FAULT 80
  109. #define BAD_DECRYPT_SIZE 81
  110. #define EXTENDED_MASTER_HASH_STR 82
  111. #define SPLIT_HANDSHAKE_MSG_STR 83
  112. #define ECC_DECODE_STR 84
  113. #define ECC_PUB_DECODE_STR 85
  114. #define WATCH_CB_MISSING_STR 86
  115. #define WATCH_HASH_STR 87
  116. #define WATCH_FAIL_STR 88
  117. #define BAD_CERT_MSG_STR 89
  118. #define STORE_DATA_CB_MISSING_STR 90
  119. #define NO_DATA_DEST_STR 91
  120. #define STORE_DATA_FAIL_STR 92
  121. #define CHAIN_INPUT_STR 93
  122. #define GOT_ENC_EXT_STR 94
  123. #define GOT_HELLO_RETRY_REQ_STR 95
  124. #define SNIFFER_KEY_SETUP_STR 96
  125. #define UNSUPPORTED_TLS_VER_STR 97
  126. #define KEY_MISMATCH_STR 98
  127. #define KEYLOG_FILE_INVALID 99
  128. /* !!!! also add to msgTable in sniffer.c and .rc file !!!! */
  129. #endif /* wolfSSL_SNIFFER_ERROR_H */