summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2018-06-02 15:51:43 +0000
committerjsing <>2018-06-02 15:51:43 +0000
commit43a458ea42e914e0cf7a1e28dfd3a8abb6e240c0 (patch)
tree17218f2eac63684ddb13660452740fef0a5e1c50
parentd387237931d17dffcba378b52465111805acfef5 (diff)
downloadopenbsd-43a458ea42e914e0cf7a1e28dfd3a8abb6e240c0.tar.gz
openbsd-43a458ea42e914e0cf7a1e28dfd3a8abb6e240c0.tar.bz2
openbsd-43a458ea42e914e0cf7a1e28dfd3a8abb6e240c0.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);