From: Alan T. DeKok Date: Thu, 4 Sep 2014 14:01:56 +0000 (-0400) Subject: Use "handshake_finished" instead of "finished" X-Git-Tag: release_3_0_5~625 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5da47843c030f270e1ed3dd00fbcd3f32b34d436;p=thirdparty%2Ffreeradius-server.git Use "handshake_finished" instead of "finished" To avoid polluting the global namespace with an enum --- diff --git a/src/include/tls-h b/src/include/tls-h index 8e46bcb32a2..dba1b9f1e51 100644 --- a/src/include/tls-h +++ b/src/include/tls-h @@ -243,7 +243,7 @@ enum HandshakeType { server_hello_done = 14, certificate_verify = 15, client_key_exchange = 16, - finished = 20 + handshake_finished = 20 }; diff --git a/src/main/tls.c b/src/main/tls.c index f58be66ce8d..b83c52884e1 100644 --- a/src/main/tls.c +++ b/src/main/tls.c @@ -2974,7 +2974,7 @@ fr_tls_status_t tls_ack_handler(tls_session_t *ssn, REQUEST *request) return FR_TLS_FAIL; case handshake: - if ((ssn->info.handshake_type == finished) && + if ((ssn->info.handshake_type == handshake_finished) && (ssn->dirty_out.used == 0)) { RDEBUG2("ACK handshake is finished");