From a867082cb81cf64af56ee3d0bd6d97b37b52ecd5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Wed, 1 Apr 2015 12:35:14 +0300 Subject: [PATCH] EAP peer: Use 32-bit EAP method type for Phase 2 processing This is a step towards enabling expanded EAP header within Phase 2 EAP methods. Signed-off-by: Jouni Malinen --- src/eap_peer/eap.c | 2 +- src/eap_peer/eap_tls_common.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eap_peer/eap.c b/src/eap_peer/eap.c index 35433f3bd..fc4af9531 100644 --- a/src/eap_peer/eap.c +++ b/src/eap_peer/eap.c @@ -2400,7 +2400,7 @@ static int eap_allowed_phase2_type(int vendor, int type) u32 eap_get_phase2_type(const char *name, int *vendor) { int v; - u8 type = eap_peer_get_type(name, &v); + u32 type = eap_peer_get_type(name, &v); if (eap_allowed_phase2_type(v, type)) { *vendor = v; return type; diff --git a/src/eap_peer/eap_tls_common.c b/src/eap_peer/eap_tls_common.c index b1180d5e7..15c1bac51 100644 --- a/src/eap_peer/eap_tls_common.c +++ b/src/eap_peer/eap_tls_common.c @@ -998,7 +998,7 @@ int eap_peer_select_phase2_methods(struct eap_peer_config *config, { char *start, *pos, *buf; struct eap_method_type *methods = NULL, *_methods; - u8 method; + u32 method; size_t num_methods = 0, prefix_len; if (config == NULL || config->phase2 == NULL)