2021-11-26 03:31:05 +00:00
|
|
|
/** @file
|
2007-11-16 23:03:09 +00:00
|
|
|
* Extenal definitions for EAP Extensible Authentication Protocol dissection
|
|
|
|
* RFC 2284, RFC 3748
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
2009-05-07 21:13:32 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
2007-11-16 23:03:09 +00:00
|
|
|
*
|
2018-02-08 16:59:17 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2007-11-16 23:03:09 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __EAP_H__
|
|
|
|
#define __EAP_H__
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
#include "ws_symbol_export.h"
|
2013-03-29 17:43:14 +00:00
|
|
|
#include "value_string.h"
|
2013-03-01 23:53:11 +00:00
|
|
|
|
2010-01-27 18:16:07 +00:00
|
|
|
/* http://www.iana.org/assignments/eap-numbers */
|
2009-05-07 21:13:32 +00:00
|
|
|
#define EAP_REQUEST 1
|
|
|
|
#define EAP_RESPONSE 2
|
|
|
|
#define EAP_SUCCESS 3
|
|
|
|
#define EAP_FAILURE 4
|
2010-01-27 18:16:07 +00:00
|
|
|
#define EAP_INITIATE 5 /* [RFC5296] */
|
|
|
|
#define EAP_FINISH 6 /* [RFC5296] */
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC const value_string eap_code_vals[];
|
2007-11-16 23:03:09 +00:00
|
|
|
|
2012-12-10 14:50:32 +00:00
|
|
|
#define EAP_TYPE_ID 1
|
|
|
|
#define EAP_TYPE_NOTIFY 2
|
|
|
|
#define EAP_TYPE_NAK 3
|
|
|
|
#define EAP_TYPE_MD5 4
|
|
|
|
#define EAP_TYPE_TLS 13
|
|
|
|
#define EAP_TYPE_LEAP 17
|
|
|
|
#define EAP_TYPE_SIM 18
|
|
|
|
#define EAP_TYPE_TTLS 21
|
|
|
|
#define EAP_TYPE_AKA 23
|
|
|
|
#define EAP_TYPE_PEAP 25
|
|
|
|
#define EAP_TYPE_MSCHAPV2 26
|
2022-03-09 18:06:43 +00:00
|
|
|
#define EAP_TYPE_MSAUTH_TLV 33
|
2012-12-10 14:50:32 +00:00
|
|
|
#define EAP_TYPE_FAST 43
|
2020-09-21 15:05:05 +00:00
|
|
|
#define EAP_TYPE_PAX 46
|
|
|
|
#define EAP_TYPE_PSK 47
|
|
|
|
#define EAP_TYPE_SAKE 48
|
2022-01-17 09:52:45 +00:00
|
|
|
#define EAP_TYPE_IKEV2 49
|
2012-12-10 14:50:32 +00:00
|
|
|
#define EAP_TYPE_AKA_PRIME 50
|
2020-09-21 15:05:05 +00:00
|
|
|
#define EAP_TYPE_GPSK 51
|
2020-02-08 15:50:38 +00:00
|
|
|
#define EAP_TYPE_TEAP 55
|
2012-12-10 14:50:32 +00:00
|
|
|
#define EAP_TYPE_EXT 254
|
2007-11-16 23:03:09 +00:00
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC value_string_ext eap_type_vals_ext;
|
2007-11-16 23:03:09 +00:00
|
|
|
|
2012-04-04 12:32:44 +00:00
|
|
|
#define SIM_START 10
|
|
|
|
#define SIM_CHALLENGE 11
|
|
|
|
#define SIM_NOTIFICATION 12
|
|
|
|
#define SIM_RE_AUTHENTICATION 13
|
|
|
|
#define SIM_CLIENT_ERROR 14
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC const value_string eap_sim_subtype_vals[];
|
2012-04-04 12:32:44 +00:00
|
|
|
|
|
|
|
#define AKA_CHALLENGE 1
|
|
|
|
#define AKA_AUTHENTICATION_REJECT 2
|
|
|
|
#define AKA_SYNCHRONIZATION_FAILURE 4
|
|
|
|
#define AKA_IDENTITY 5
|
|
|
|
#define AKA_NOTIFICATION 12
|
|
|
|
#define AKA_REAUTHENTICATION 13
|
|
|
|
#define AKA_CLIENT_ERROR 14
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC const value_string eap_aka_subtype_vals[];
|
2012-04-04 12:32:44 +00:00
|
|
|
|
2012-04-05 12:33:25 +00:00
|
|
|
#define MS_CHAP_V2_CHALLENGE 1
|
|
|
|
#define MS_CHAP_V2_RESPONSE 2
|
|
|
|
#define MS_CHAP_V2_SUCCESS 3
|
|
|
|
#define MS_CHAP_V2_FAILURE 4
|
|
|
|
#define MS_CHAP_V2_CHANGE_PASSWORD 7
|
|
|
|
|
2013-03-01 23:53:11 +00:00
|
|
|
WS_DLL_PUBLIC const value_string eap_ms_chap_v2_opcode_vals[];
|
2012-04-05 12:33:25 +00:00
|
|
|
|
2022-03-09 18:06:38 +00:00
|
|
|
typedef enum {
|
|
|
|
PROTO_DATA_EAP_DUPLICATE_ID,
|
|
|
|
PROTO_DATA_EAP_FRAME_STATE,
|
2022-03-11 19:38:28 +00:00
|
|
|
PROTO_DATA_EAP_TVB,
|
2022-03-09 18:06:38 +00:00
|
|
|
} proto_data_eap;
|
|
|
|
|
2019-04-25 18:59:59 +00:00
|
|
|
typedef struct _eap_vendor_context {
|
|
|
|
guint32 vendor_type;
|
|
|
|
guint32 vendor_id;
|
|
|
|
guint8 eap_code;
|
|
|
|
guint8 eap_identifier;
|
|
|
|
} eap_vendor_context;
|
|
|
|
|
2007-11-16 23:03:09 +00:00
|
|
|
#endif
|