dcerpc-netlogon: improve NetrLogonGetCapabilities dissection
[wireshark-sm.git] / epan / eap.h
blobb7334609f919a1a3b7ee8672d9a5103c7e69e50b
1 /** @file
2 * Extenal definitions for EAP Extensible Authentication Protocol dissection
3 * RFC 2284, RFC 3748
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef __EAP_H__
13 #define __EAP_H__
15 #include "ws_symbol_export.h"
16 #include "value_string.h"
18 /* http://www.iana.org/assignments/eap-numbers */
19 #define EAP_REQUEST 1
20 #define EAP_RESPONSE 2
21 #define EAP_SUCCESS 3
22 #define EAP_FAILURE 4
23 #define EAP_INITIATE 5 /* [RFC5296] */
24 #define EAP_FINISH 6 /* [RFC5296] */
26 WS_DLL_PUBLIC const value_string eap_code_vals[];
28 #define EAP_TYPE_ID 1
29 #define EAP_TYPE_NOTIFY 2
30 #define EAP_TYPE_NAK 3
31 #define EAP_TYPE_MD5 4
32 #define EAP_TYPE_TLS 13
33 #define EAP_TYPE_LEAP 17
34 #define EAP_TYPE_SIM 18
35 #define EAP_TYPE_TTLS 21
36 #define EAP_TYPE_AKA 23
37 #define EAP_TYPE_PEAP 25
38 #define EAP_TYPE_MSCHAPV2 26
39 #define EAP_TYPE_MSAUTH_TLV 33
40 #define EAP_TYPE_FAST 43
41 #define EAP_TYPE_PAX 46
42 #define EAP_TYPE_PSK 47
43 #define EAP_TYPE_SAKE 48
44 #define EAP_TYPE_IKEV2 49
45 #define EAP_TYPE_AKA_PRIME 50
46 #define EAP_TYPE_GPSK 51
47 #define EAP_TYPE_TEAP 55
48 #define EAP_TYPE_EXT 254
50 WS_DLL_PUBLIC value_string_ext eap_type_vals_ext;
52 #define SIM_START 10
53 #define SIM_CHALLENGE 11
54 #define SIM_NOTIFICATION 12
55 #define SIM_RE_AUTHENTICATION 13
56 #define SIM_CLIENT_ERROR 14
58 WS_DLL_PUBLIC const value_string eap_sim_subtype_vals[];
60 #define AKA_CHALLENGE 1
61 #define AKA_AUTHENTICATION_REJECT 2
62 #define AKA_SYNCHRONIZATION_FAILURE 4
63 #define AKA_IDENTITY 5
64 #define AKA_NOTIFICATION 12
65 #define AKA_REAUTHENTICATION 13
66 #define AKA_CLIENT_ERROR 14
68 WS_DLL_PUBLIC const value_string eap_aka_subtype_vals[];
70 #define MS_CHAP_V2_CHALLENGE 1
71 #define MS_CHAP_V2_RESPONSE 2
72 #define MS_CHAP_V2_SUCCESS 3
73 #define MS_CHAP_V2_FAILURE 4
74 #define MS_CHAP_V2_CHANGE_PASSWORD 7
76 WS_DLL_PUBLIC const value_string eap_ms_chap_v2_opcode_vals[];
78 typedef enum {
79 PROTO_DATA_EAP_DUPLICATE_ID,
80 PROTO_DATA_EAP_FRAME_STATE,
81 PROTO_DATA_EAP_TVB,
82 } proto_data_eap;
84 typedef struct _eap_vendor_context {
85 uint32_t vendor_type;
86 uint32_t vendor_id;
87 uint8_t eap_code;
88 uint8_t eap_identifier;
89 } eap_vendor_context;
91 #endif