EAP-TTLS/PEAP/FAST peer: Stop immediately on local TLS processing failure
EAP-TLS was already doing this, but the other TLS-based EAP methods did not mark methodState DONE and decision FAIL on local TLS processing errors (instead, they left the connection waiting for a longer timeout). Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
6ee66b4251
commit
bb91243047
3 changed files with 20 additions and 0 deletions
|
@ -1011,6 +1011,13 @@ static struct wpabuf * eap_peap_process(struct eap_sm *sm, void *priv,
|
|||
data->peap_version, id, &msg,
|
||||
&resp);
|
||||
|
||||
if (res < 0) {
|
||||
wpa_printf(MSG_DEBUG,
|
||||
"EAP-PEAP: TLS processing failed");
|
||||
ret->methodState = METHOD_DONE;
|
||||
ret->decision = DECISION_FAIL;
|
||||
return resp;
|
||||
}
|
||||
if (tls_connection_established(sm->ssl_ctx, data->ssl.conn)) {
|
||||
char *label;
|
||||
wpa_printf(MSG_DEBUG,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue