summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2018-06-02 15:51:44 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2018-06-02 15:51:44 +0000
commitcc1c0da397962521786169eb2e616c25fa74be8e (patch)
tree177faabae24b07db6c49d0cfaf30da24a56e1b35 /regress
parent71ef15f3341c007b89cdf28d34ab29e075d577c7 (diff)
Zero the client random so that it is easier to spot unintended differences.
Diffstat (limited to 'regress')
-rw-r--r--regress/lib/libssl/client/clienttest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regress/lib/libssl/client/clienttest.c b/regress/lib/libssl/client/clienttest.c
index d198d277ede..d5effe3ffc7 100644
--- a/regress/lib/libssl/client/clienttest.c
+++ b/regress/lib/libssl/client/clienttest.c
@@ -413,6 +413,7 @@ client_hello_test(int testno, struct client_hello_test *cht)
memcmp(&client_hello[i], &wbuf[i], len - i) != 0) {
fprintf(stderr, "FAIL: ClientHello differs:\n");
fprintf(stderr, "received:\n");
+ memset(&wbuf[cht->random_start], 0, SSL3_RANDOM_SIZE);
hexdump(wbuf, len);
fprintf(stderr, "test data:\n");
hexdump(client_hello, client_hello_len);