diff options
author | jsing <> | 2021-06-27 16:36:53 +0000 |
---|---|---|
committer | jsing <> | 2021-06-27 16:36:53 +0000 |
commit | 3823b2ef1f4ed72a8ccd45a9a3b77c6902127d0f (patch) | |
tree | 2e08f595cfab7275bf1063f13266a13208a3f25c /src/regress/lib/libssl | |
parent | bd8d8d2fe089759c219c706fe9bed068791f93e6 (diff) | |
download | openbsd-3823b2ef1f4ed72a8ccd45a9a3b77c6902127d0f.tar.gz openbsd-3823b2ef1f4ed72a8ccd45a9a3b77c6902127d0f.tar.bz2 openbsd-3823b2ef1f4ed72a8ccd45a9a3b77c6902127d0f.zip |
More appropriately set cipher_list_len when AES acceleration is available.
Diffstat (limited to 'src/regress/lib/libssl')
-rw-r--r-- | src/regress/lib/libssl/client/clienttest.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/regress/lib/libssl/client/clienttest.c b/src/regress/lib/libssl/client/clienttest.c index 17c678b1cc..86f6e2d6ca 100644 --- a/src/regress/lib/libssl/client/clienttest.c +++ b/src/regress/lib/libssl/client/clienttest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: clienttest.c,v 1.29 2021/06/27 16:33:30 jsing Exp $ */ | 1 | /* $OpenBSD: clienttest.c,v 1.30 2021/06/27 16:36:53 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -347,11 +347,12 @@ make_client_hello(int protocol, char **out, size_t *outlen) | |||
347 | case TLS1_2_VERSION: | 347 | case TLS1_2_VERSION: |
348 | client_hello = client_hello_tls12; | 348 | client_hello = client_hello_tls12; |
349 | client_hello_len = sizeof(client_hello_tls12); | 349 | client_hello_len = sizeof(client_hello_tls12); |
350 | if (ssl_aes_is_accelerated()) | 350 | cipher_list = cipher_list_tls12_chacha; |
351 | cipher_list = cipher_list_tls12_aes; | ||
352 | else | ||
353 | cipher_list = cipher_list_tls12_chacha; | ||
354 | cipher_list_len = sizeof(cipher_list_tls12_chacha); | 351 | cipher_list_len = sizeof(cipher_list_tls12_chacha); |
352 | if (ssl_aes_is_accelerated()) { | ||
353 | cipher_list = cipher_list_tls12_aes; | ||
354 | cipher_list_len = sizeof(cipher_list_tls12_aes); | ||
355 | } | ||
355 | cipher_list_offset = SSL3_CIPHER_OFFSET; | 356 | cipher_list_offset = SSL3_CIPHER_OFFSET; |
356 | break; | 357 | break; |
357 | 358 | ||