aboutsummaryrefslogtreecommitdiffstats
path: root/src/eap_server/eap_tls_common.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-05-28 06:59:55 (GMT)
committerJouni Malinen <j@w1.fi>2008-05-28 06:59:55 (GMT)
commit3c724cc564911f9ef217f24dac1fa2b2d8f7d31c (patch)
treee3a0aa17e7179befaa21fb32e487756bea3cdfb2 /src/eap_server/eap_tls_common.c
parent34f564dbd5168626da55a7119b04832e98793160 (diff)
downloadhostap-06-3c724cc564911f9ef217f24dac1fa2b2d8f7d31c.zip
hostap-06-3c724cc564911f9ef217f24dac1fa2b2d8f7d31c.tar.gz
hostap-06-3c724cc564911f9ef217f24dac1fa2b2d8f7d31c.tar.bz2
Do not refer to Flags::Version field as 'PEAP version'
This field is also used for EAP-TTLS and EAP-FAST, so it is clearer to use a more generic term for it.
Diffstat (limited to 'src/eap_server/eap_tls_common.c')
-rw-r--r--src/eap_server/eap_tls_common.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/eap_server/eap_tls_common.c b/src/eap_server/eap_tls_common.c
index 7cd1d03..894b27f 100644
--- a/src/eap_server/eap_tls_common.c
+++ b/src/eap_server/eap_tls_common.c
@@ -107,7 +107,7 @@ fail:
struct wpabuf * eap_server_tls_build_msg(struct eap_ssl_data *data,
- int eap_type, int peap_version, u8 id)
+ int eap_type, int version, u8 id)
{
struct wpabuf *req;
u8 flags;
@@ -115,7 +115,7 @@ struct wpabuf * eap_server_tls_build_msg(struct eap_ssl_data *data,
wpa_printf(MSG_DEBUG, "SSL: Generating Request");
- flags = peap_version;
+ flags = version;
send_len = wpabuf_len(data->out_buf) - data->out_used;
if (1 + send_len > data->tls_out_limit) {
send_len = data->tls_out_limit - 1;
@@ -163,7 +163,7 @@ struct wpabuf * eap_server_tls_build_msg(struct eap_ssl_data *data,
}
-struct wpabuf * eap_server_tls_build_ack(u8 id, int eap_type, int peap_version)
+struct wpabuf * eap_server_tls_build_ack(u8 id, int eap_type, int version)
{
struct wpabuf *req;
@@ -172,7 +172,7 @@ struct wpabuf * eap_server_tls_build_ack(u8 id, int eap_type, int peap_version)
if (req == NULL)
return NULL;
wpa_printf(MSG_DEBUG, "SSL: Building ACK");
- wpabuf_put_u8(req, peap_version); /* Flags */
+ wpabuf_put_u8(req, version); /* Flags */
return req;
}