diff options
author | Jouni Malinen <j@w1.fi> | 2015-11-29 21:52:30 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-11-29 21:52:30 (GMT) |
commit | 88119880e0de25c8ea119f2e7adbbaea1ab68339 (patch) | |
tree | 7d22f57bd811891c8395c915877bc3301a3c8478 /src/tls/tlsv1_client_write.c | |
parent | 7fff91ae51be4385b3ddce68d533855d6f74d157 (diff) | |
download | hostap-88119880e0de25c8ea119f2e7adbbaea1ab68339.zip hostap-88119880e0de25c8ea119f2e7adbbaea1ab68339.tar.gz hostap-88119880e0de25c8ea119f2e7adbbaea1ab68339.tar.bz2 |
TLS client: Fix session_resumed status after TLS session ticket use
conn->session_resumed was not set to 1 after successful use of a TLS
session ticket with EAP-FAST. This resulted in the wpa_supplicant STATUS
tls_session_reused showing incorrect value (0 instead of 1) when
EAP-FAST PAC was used. Fix this by setting conn->session_resumed = 1
when TLS handshake using the session ticket succeeds.
Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/tls/tlsv1_client_write.c')
-rw-r--r-- | src/tls/tlsv1_client_write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tls/tlsv1_client_write.c b/src/tls/tlsv1_client_write.c index 1c835fe..b1906b2 100644 --- a/src/tls/tlsv1_client_write.c +++ b/src/tls/tlsv1_client_write.c @@ -855,6 +855,8 @@ static u8 * tls_send_change_cipher_spec(struct tlsv1_client *conn, wpa_printf(MSG_DEBUG, "TLSv1: Session resumption completed " "successfully"); + if (!conn->session_resumed && conn->use_session_ticket) + conn->session_resumed = 1; conn->state = ESTABLISHED; return msg; |