sniffer_error.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /* sniffer_error.h
  2. *
  3. * Copyright (C) 2006-2014 wolfSSL Inc.
  4. *
  5. * This file is part of CyaSSL.
  6. *
  7. * CyaSSL 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. * CyaSSL 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-1301, USA
  20. */
  21. #ifndef CYASSL_SNIFFER_ERROR_H
  22. #define CYASSL_SNIFFER_ERROR_H
  23. /* need to have errors as #defines since .rc files can't handle enums */
  24. /* need to start at 1 and go in order for same reason */
  25. #define MEMORY_STR 1
  26. #define NEW_SERVER_STR 2
  27. #define IP_CHECK_STR 3
  28. #define SERVER_NOT_REG_STR 4
  29. #define TCP_CHECK_STR 5
  30. #define SERVER_PORT_NOT_REG_STR 6
  31. #define RSA_DECRYPT_STR 7
  32. #define RSA_DECODE_STR 8
  33. #define BAD_CIPHER_SPEC_STR 9
  34. #define SERVER_HELLO_INPUT_STR 10
  35. #define BAD_SESSION_RESUME_STR 11
  36. #define SERVER_DID_RESUMPTION_STR 12
  37. #define CLIENT_HELLO_INPUT_STR 13
  38. #define CLIENT_RESUME_TRY_STR 14
  39. #define HANDSHAKE_INPUT_STR 15
  40. #define GOT_HELLO_VERIFY_STR 16
  41. #define GOT_SERVER_HELLO_STR 17
  42. #define GOT_CERT_REQ_STR 18
  43. #define GOT_SERVER_KEY_EX_STR 19
  44. #define GOT_CERT_STR 20
  45. #define GOT_SERVER_HELLO_DONE_STR 21
  46. #define GOT_FINISHED_STR 22
  47. #define GOT_CLIENT_HELLO_STR 23
  48. #define GOT_CLIENT_KEY_EX_STR 24
  49. #define GOT_CERT_VER_STR 25
  50. #define GOT_UNKNOWN_HANDSHAKE_STR 26
  51. #define NEW_SESSION_STR 27
  52. #define BAD_NEW_SSL_STR 28
  53. #define GOT_PACKET_STR 29
  54. #define NO_DATA_STR 30
  55. #define BAD_SESSION_STR 31
  56. #define GOT_OLD_CLIENT_HELLO_STR 32
  57. #define OLD_CLIENT_INPUT_STR 33
  58. #define OLD_CLIENT_OK_STR 34
  59. #define BAD_OLD_CLIENT_STR 35
  60. #define BAD_RECORD_HDR_STR 36
  61. #define RECORD_INPUT_STR 37
  62. #define GOT_HANDSHAKE_STR 38
  63. #define BAD_HANDSHAKE_STR 39
  64. #define GOT_CHANGE_CIPHER_STR 40
  65. #define GOT_APP_DATA_STR 41
  66. #define BAD_APP_DATA_STR 42
  67. #define GOT_ALERT_STR 43
  68. #define ANOTHER_MSG_STR 44
  69. #define REMOVE_SESSION_STR 45
  70. #define KEY_FILE_STR 46
  71. #define BAD_IPVER_STR 47
  72. #define BAD_PROTO_STR 48
  73. #define PACKET_HDR_SHORT_STR 49
  74. #define GOT_UNKNOWN_RECORD_STR 50
  75. #define BAD_TRACE_FILE_STR 51
  76. #define FATAL_ERROR_STR 52
  77. #define PARTIAL_INPUT_STR 53
  78. #define BUFFER_ERROR_STR 54
  79. #define PARTIAL_ADD_STR 55
  80. #define DUPLICATE_STR 56
  81. #define OUT_OF_ORDER_STR 57
  82. #define OVERLAP_DUPLICATE_STR 58
  83. #define OVERLAP_REASSEMBLY_BEGIN_STR 59
  84. #define OVERLAP_REASSEMBLY_END_STR 60
  85. #define MISSED_CLIENT_HELLO_STR 61
  86. #define GOT_HELLO_REQUEST_STR 62
  87. #define GOT_SESSION_TICKET_STR 63
  88. #define BAD_INPUT_STR 64
  89. #define BAD_DECRYPT_TYPE 65
  90. #define BAD_FINISHED_MSG 66
  91. #define BAD_COMPRESSION_STR 67
  92. #define BAD_DERIVE_STR 68
  93. #define ACK_MISSED_STR 69
  94. #define BAD_DECRYPT 70
  95. /* !!!! also add to msgTable in sniffer.c and .rc file !!!! */
  96. #endif /* CyaSSL_SNIFFER_ERROR_H */