3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-01-05 12:52:37 +01:00

ttls: remove unused state var

This commit is contained in:
Tim Kourt 2018-09-20 16:38:25 -07:00 committed by Denis Kenzior
parent 410ee2f6b9
commit a7f5d1da21

View File

@ -2,7 +2,7 @@
* *
* Wireless daemon for Linux * Wireless daemon for Linux
* *
* Copyright (C) 2013-2014 Intel Corporation. All rights reserved. * Copyright (C) 2013-2018 Intel Corporation. All rights reserved.
* *
* This library is free software; you can redistribute it and/or * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public * modify it under the terms of the GNU Lesser General Public
@ -46,7 +46,6 @@ struct eap_ttls_state {
size_t tx_pkt_len, tx_pkt_capacity, tx_pkt_offset; size_t tx_pkt_len, tx_pkt_capacity, tx_pkt_offset;
uint8_t *avp_buf; uint8_t *avp_buf;
size_t avp_received, avp_capacity; size_t avp_received, avp_capacity;
bool phase1_completed;
bool completed; bool completed;
struct eap_state *phase2_eap; struct eap_state *phase2_eap;
uint8_t negotiated_version; uint8_t negotiated_version;
@ -54,7 +53,6 @@ struct eap_ttls_state {
static void __eap_ttls_reset_state(struct eap_ttls_state *ttls) static void __eap_ttls_reset_state(struct eap_ttls_state *ttls)
{ {
ttls->phase1_completed = false;
ttls->completed = false; ttls->completed = false;
l_free(ttls->rx_pkt_buf); l_free(ttls->rx_pkt_buf);
@ -343,8 +341,6 @@ static void eap_ttls_ready_cb(const char *peer_identity, void *user_data)
/* TODO: if we have a CA certificate require non-NULL peer_identity */ /* TODO: if we have a CA certificate require non-NULL peer_identity */
ttls->phase1_completed = true;
/* /*
* TTLSv0 seems to assume that the TLS handshake phase authenticates * TTLSv0 seems to assume that the TLS handshake phase authenticates
* the server to the client enough that the inner method success or * the server to the client enough that the inner method success or