gnunet-android

GNUnet for Android
Log | Files | Refs | README

sniffer_error.h (4238B)


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