wslua: fix nstime memory leak after passing unknown encoding to TvbRange_nstime()
[metze/wireshark/wip.git] / epan / eap.h
1 /* eap.h
2  * Extenal definitions for EAP Extensible Authentication Protocol dissection
3  * RFC 2284, RFC 3748
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * This program is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU General Public License
11  * as published by the Free Software Foundation; either version 2
12  * of the License, or (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22  */
23
24 #ifndef __EAP_H__
25 #define __EAP_H__
26
27 #include "ws_symbol_export.h"
28 #include "value_string.h"
29
30 /* http://www.iana.org/assignments/eap-numbers */
31 #define EAP_REQUEST     1
32 #define EAP_RESPONSE    2
33 #define EAP_SUCCESS     3
34 #define EAP_FAILURE     4
35 #define EAP_INITIATE    5 /* [RFC5296] */
36 #define EAP_FINISH      6 /* [RFC5296] */
37
38 WS_DLL_PUBLIC const value_string eap_code_vals[];
39
40 #define EAP_TYPE_ID          1
41 #define EAP_TYPE_NOTIFY      2
42 #define EAP_TYPE_NAK         3
43 #define EAP_TYPE_MD5         4
44 #define EAP_TYPE_TLS        13
45 #define EAP_TYPE_LEAP       17
46 #define EAP_TYPE_SIM        18
47 #define EAP_TYPE_TTLS       21
48 #define EAP_TYPE_AKA        23
49 #define EAP_TYPE_PEAP       25
50 #define EAP_TYPE_MSCHAPV2   26
51 #define EAP_TYPE_FAST       43
52 #define EAP_TYPE_AKA_PRIME  50
53 #define EAP_TYPE_EXT       254
54
55 WS_DLL_PUBLIC value_string_ext eap_type_vals_ext;
56
57 #define SIM_START 10
58 #define SIM_CHALLENGE 11
59 #define SIM_NOTIFICATION 12
60 #define SIM_RE_AUTHENTICATION 13
61 #define SIM_CLIENT_ERROR 14
62
63 WS_DLL_PUBLIC const value_string eap_sim_subtype_vals[];
64
65 #define AKA_CHALLENGE 1
66 #define AKA_AUTHENTICATION_REJECT 2
67 #define AKA_SYNCHRONIZATION_FAILURE 4
68 #define AKA_IDENTITY 5
69 #define AKA_NOTIFICATION 12
70 #define AKA_REAUTHENTICATION 13
71 #define AKA_CLIENT_ERROR 14
72
73 WS_DLL_PUBLIC const value_string eap_aka_subtype_vals[];
74
75 #define MS_CHAP_V2_CHALLENGE 1
76 #define MS_CHAP_V2_RESPONSE 2
77 #define MS_CHAP_V2_SUCCESS 3
78 #define MS_CHAP_V2_FAILURE 4
79 #define MS_CHAP_V2_CHANGE_PASSWORD 7
80
81 WS_DLL_PUBLIC const value_string eap_ms_chap_v2_opcode_vals[];
82
83 #endif