diff options
author | 2020-04-06 16:53:09 +0000 | |
---|---|---|
committer | 2020-04-06 16:53:09 +0000 | |
commit | 521688a3ef04f3c9baeb73cddfefee257133faa9 (patch) | |
tree | c702d18e60cc80d22957a3394efefc83266e7af0 | |
parent | Add tests that cover TLSv1.2 and disable those that trigger TLSv1.3. (diff) | |
download | wireguard-openbsd-521688a3ef04f3c9baeb73cddfefee257133faa9.tar.xz wireguard-openbsd-521688a3ef04f3c9baeb73cddfefee257133faa9.zip |
Minor code improvements.
-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); |