summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2018-06-02 15:51:43 +0000
committerjsing <>2018-06-02 15:51:43 +0000
commitbe2eb562a3b6b24f6f7bf2a5fe7b2fbce5209289 (patch)
tree17218f2eac63684ddb13660452740fef0a5e1c50
parent49a6a67825dd906dd3954d89449cf414223296be (diff)
downloadopenbsd-be2eb562a3b6b24f6f7bf2a5fe7b2fbce5209289.tar.gz
openbsd-be2eb562a3b6b24f6f7bf2a5fe7b2fbce5209289.tar.bz2
openbsd-be2eb562a3b6b24f6f7bf2a5fe7b2fbce5209289.zip
Zero the client random so that it is easier to spot unintended differences.
-rw-r--r--src/regress/lib/libssl/client/clienttest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/regress/lib/libssl/client/clienttest.c b/src/regress/lib/libssl/client/clienttest.c
index d198d277ed..d5effe3ffc 100644
--- a/src/regress/lib/libssl/client/clienttest.c
+++ b/src/regress/lib/libssl/client/clienttest.c
@@ -413,6 +413,7 @@ client_hello_test(int testno, struct client_hello_test *cht)
413 memcmp(&client_hello[i], &wbuf[i], len - i) != 0) { 413 memcmp(&client_hello[i], &wbuf[i], len - i) != 0) {
414 fprintf(stderr, "FAIL: ClientHello differs:\n"); 414 fprintf(stderr, "FAIL: ClientHello differs:\n");
415 fprintf(stderr, "received:\n"); 415 fprintf(stderr, "received:\n");
416 memset(&wbuf[cht->random_start], 0, SSL3_RANDOM_SIZE);
416 hexdump(wbuf, len); 417 hexdump(wbuf, len);
417 fprintf(stderr, "test data:\n"); 418 fprintf(stderr, "test data:\n");
418 hexdump(client_hello, client_hello_len); 419 hexdump(client_hello, client_hello_len);