diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2020-04-06 16:53:10 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2020-04-06 16:53:10 +0000 |
commit | 42e071f11d2d140c5ae7230d38981e3ff3de0be2 (patch) | |
tree | c397e3a9ce367c6a94e6720e96548f2b6a0b6a77 /regress/lib/libssl/client | |
parent | 63a8abe23b38915d14c0d53f32dd4d6de9aca1f0 (diff) |
Minor code improvements.
Diffstat (limited to 'regress/lib/libssl/client')
-rw-r--r-- | regress/lib/libssl/client/clienttest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/lib/libssl/client/clienttest.c b/regress/lib/libssl/client/clienttest.c index 3487348c9e3..e81b83c45e2 100644 --- a/regress/lib/libssl/client/clienttest.c +++ b/regress/lib/libssl/client/clienttest.c @@ -289,7 +289,7 @@ hexdump(const unsigned char *buf, size_t len) size_t i; for (i = 1; i <= len; i++) - fprintf(stderr, " 0x%02hhx,%s", buf[i - 1], i % 8 ? "" : "\n"); + fprintf(stderr, " 0x%02hhx,%s", buf[i - 1], i % 8 && i != len ? "" : "\n"); fprintf(stderr, "\n"); } @@ -342,7 +342,7 @@ make_client_hello(int protocol, char **out, size_t *outlen) case TLS1_2_VERSION: client_hello = client_hello_tls12; client_hello_len = sizeof(client_hello_tls12); - if (ssl_aes_is_accelerated() == 1) + if (ssl_aes_is_accelerated()) cipher_list = cipher_list_tls12_aes; else cipher_list = cipher_list_tls12_chacha; @@ -450,7 +450,7 @@ client_hello_test(int testno, struct client_hello_test *cht) ret = 0; -failure: + failure: SSL_CTX_free(ssl_ctx); SSL_free(ssl); |