summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2020-04-06 16:53:09 +0000
committerjsing <>2020-04-06 16:53:09 +0000
commitd6eb5b361e5fc15612c787bcf5b4d71f74a9a1f0 (patch)
tree7fa03a9504a07b943c1f7774d7d3cc747de4a426 /src
parent0b1475e1f5215e43f5fcc79ad509d32f65a83c6f (diff)
downloadopenbsd-d6eb5b361e5fc15612c787bcf5b4d71f74a9a1f0.tar.gz
openbsd-d6eb5b361e5fc15612c787bcf5b4d71f74a9a1f0.tar.bz2
openbsd-d6eb5b361e5fc15612c787bcf5b4d71f74a9a1f0.zip
Minor code improvements.
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libssl/client/clienttest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libssl/client/clienttest.c b/src/regress/lib/libssl/client/clienttest.c
index 3487348c9e..e81b83c45e 100644
--- a/src/regress/lib/libssl/client/clienttest.c
+++ b/src/regress/lib/libssl/client/clienttest.c
@@ -289,7 +289,7 @@ hexdump(const unsigned char *buf, size_t len)
289 size_t i; 289 size_t i;
290 290
291 for (i = 1; i <= len; i++) 291 for (i = 1; i <= len; i++)
292 fprintf(stderr, " 0x%02hhx,%s", buf[i - 1], i % 8 ? "" : "\n"); 292 fprintf(stderr, " 0x%02hhx,%s", buf[i - 1], i % 8 && i != len ? "" : "\n");
293 293
294 fprintf(stderr, "\n"); 294 fprintf(stderr, "\n");
295} 295}
@@ -342,7 +342,7 @@ make_client_hello(int protocol, char **out, size_t *outlen)
342 case TLS1_2_VERSION: 342 case TLS1_2_VERSION:
343 client_hello = client_hello_tls12; 343 client_hello = client_hello_tls12;
344 client_hello_len = sizeof(client_hello_tls12); 344 client_hello_len = sizeof(client_hello_tls12);
345 if (ssl_aes_is_accelerated() == 1) 345 if (ssl_aes_is_accelerated())
346 cipher_list = cipher_list_tls12_aes; 346 cipher_list = cipher_list_tls12_aes;
347 else 347 else
348 cipher_list = cipher_list_tls12_chacha; 348 cipher_list = cipher_list_tls12_chacha;
@@ -450,7 +450,7 @@ client_hello_test(int testno, struct client_hello_test *cht)
450 450
451 ret = 0; 451 ret = 0;
452 452
453failure: 453 failure:
454 SSL_CTX_free(ssl_ctx); 454 SSL_CTX_free(ssl_ctx);
455 SSL_free(ssl); 455 SSL_free(ssl);
456 456