EAP-TLS/TTLS/PEAP/FAST peer: Stop connection more quickly on local failure
authorJouni Malinen <j@w1.fi>
Tue, 28 Jul 2015 13:32:27 +0000 (16:32 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 28 Jul 2015 18:00:18 +0000 (21:00 +0300)
commit3947997dcc9c4bc79a1c7e5838111c4605434715
treec6e966ca3cff2ce7262135dad3d3d844dd2e2a2e
parentbb91243047d22952490ff1d6cd626dd0301c5371
EAP-TLS/TTLS/PEAP/FAST peer: Stop connection more quickly on local failure

If there is only zero-length buffer of output data in error case, mark
that as an immediate failure instead of trying to report that
non-existing error report to the server. This allows faster connection
termination in cases where a non-recoverable error occurs in local TLS
processing, e.g., if none of the configured ciphers are available.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/eap_peer/eap_tls_common.c