Use "handshake_finished" instead of "finished"
authorAlan T. DeKok <aland@freeradius.org>
Thu, 4 Sep 2014 14:01:56 +0000 (10:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 4 Sep 2014 14:01:56 +0000 (10:01 -0400)
To avoid polluting the global namespace with an enum

src/include/tls-h
src/main/tls.c

index 8e46bcb..dba1b9f 100644 (file)
@@ -243,7 +243,7 @@ enum HandshakeType {
        server_hello_done = 14,
        certificate_verify = 15,
        client_key_exchange = 16,
-       finished = 20
+       handshake_finished = 20
 };
 
 
index f58be66..b83c528 100644 (file)
@@ -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");