@@ -655,10 +655,6 @@ int main(int argc, char **argv)
655655 *# the TLS 1.3 handshake look more like a TLS 1.2 handshake:
656656 */
657657 {
658- bool change_cipher_spec_found ;
659- uint32_t handshake_type ;
660- message_type_t * messages ;
661-
662658 /*
663659 *= https://tools.ietf.org/rfc/rfc8446#appendix-D.4
664660 *= type=test
@@ -668,9 +664,9 @@ int main(int argc, char **argv)
668664 *# its second ClientHello or before its encrypted handshake flight.
669665 **/
670666 for (size_t i = 0 ; i < valid_tls13_handshakes_size ; i ++ ) {
671- change_cipher_spec_found = false;
672- handshake_type = valid_tls13_handshakes [i ];
673- messages = tls13_handshakes [handshake_type ];
667+ bool change_cipher_spec_found = false;
668+ uint32_t handshake_type = valid_tls13_handshakes [i ];
669+ message_type_t * messages = tls13_handshakes [handshake_type ];
674670
675671 /* Ignore INITIAL and non-MIDDLEBOX_COMPAT handshakes */
676672 if (!(handshake_type & NEGOTIATED )
@@ -705,8 +701,8 @@ int main(int argc, char **argv)
705701 *# first ClientHello.
706702 */
707703 for (size_t i = 0 ; i < valid_tls13_handshakes_size ; i ++ ) {
708- handshake_type = valid_tls13_handshakes [i ];
709- messages = tls13_handshakes [handshake_type ];
704+ uint32_t handshake_type = valid_tls13_handshakes [i ];
705+ message_type_t * messages = tls13_handshakes [handshake_type ];
710706
711707 /* Ignore handshakes where early data did not trigger the change in CCS behavior */
712708 if (!(handshake_type & EARLY_CLIENT_CCS )) {
@@ -728,9 +724,9 @@ int main(int argc, char **argv)
728724 *# ServerHello or a HelloRetryRequest.
729725 **/
730726 for (size_t i = 0 ; i < valid_tls13_handshakes_size ; i ++ ) {
731- change_cipher_spec_found = false;
732- handshake_type = valid_tls13_handshakes [i ];
733- messages = tls13_handshakes [handshake_type ];
727+ bool change_cipher_spec_found = false;
728+ uint32_t handshake_type = valid_tls13_handshakes [i ];
729+ message_type_t * messages = tls13_handshakes [handshake_type ];
734730
735731 /* Ignore INITIAL and non-MIDDLEBOX_COMPAT handshakes */
736732 if (!(handshake_type & NEGOTIATED ) || !(handshake_type & MIDDLEBOX_COMPAT )) {
0 commit comments