summaryrefslogtreecommitdiff
path: root/src/regress/lib/libssl/handshake/valid_handshakes_terminate.c
diff options
context:
space:
mode:
authortb <>2019-01-23 23:29:56 +0000
committertb <>2019-01-23 23:29:56 +0000
commit4a91b4654c78d359cb9e0cc479b358b673046f5d (patch)
tree00e8a6dabd3ac7eb9c0d1d00b72dadf795283d7c /src/regress/lib/libssl/handshake/valid_handshakes_terminate.c
parent06e6b71d917b831ea28543a745e306fa001eaf62 (diff)
downloadopenbsd-4a91b4654c78d359cb9e0cc479b358b673046f5d.tar.gz
openbsd-4a91b4654c78d359cb9e0cc479b358b673046f5d.tar.bz2
openbsd-4a91b4654c78d359cb9e0cc479b358b673046f5d.zip
Rename NUM_HANDSHAKE to handshake_count and make it a variable
so it can be used from regress. Update regress accordingly. Make sure the print target generates the entire table as it currently is in tls13_handshake.c discussed with beck and jsing ok jsing
Diffstat (limited to 'src/regress/lib/libssl/handshake/valid_handshakes_terminate.c')
-rw-r--r--src/regress/lib/libssl/handshake/valid_handshakes_terminate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libssl/handshake/valid_handshakes_terminate.c b/src/regress/lib/libssl/handshake/valid_handshakes_terminate.c
index df87087644..18e441d1a1 100644
--- a/src/regress/lib/libssl/handshake/valid_handshakes_terminate.c
+++ b/src/regress/lib/libssl/handshake/valid_handshakes_terminate.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: valid_handshakes_terminate.c,v 1.1 2019/01/20 06:47:38 tb Exp $ */ 1/* $OpenBSD: valid_handshakes_terminate.c,v 1.2 2019/01/23 23:29:56 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2019 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2019 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -27,7 +27,7 @@ main(int argc, char *argv[])
27 int terminates; 27 int terminates;
28 int fail = 0; 28 int fail = 0;
29 29
30 for (i = 1; i < NUM_HANDSHAKES; i++) { 30 for (i = 1; i < handshake_count; i++) {
31 enum tls13_message_type mt = handshakes[i][0]; 31 enum tls13_message_type mt = handshakes[i][0];
32 32
33 if (mt == INVALID) 33 if (mt == INVALID)