summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_ciph.c
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2020-04-09 17:22:52 +0000
committerjsing <jsing@openbsd.org>2020-04-09 17:22:52 +0000
commit4669ad9c70247d5bc2826634cb526808bd9b9e34 (patch)
tree7700a23fb724672960ceccf1d34da61e88a37a6f /lib/libssl/ssl_ciph.c
parentMake sure that we really don't emut quad-precision unless the (diff)
downloadwireguard-openbsd-4669ad9c70247d5bc2826634cb526808bd9b9e34.tar.xz
wireguard-openbsd-4669ad9c70247d5bc2826634cb526808bd9b9e34.zip
ssl_aes_is_accelerated() returns a boolean - treat it as such, rather than
explicitly comparing against a value.
Diffstat (limited to 'lib/libssl/ssl_ciph.c')
-rw-r--r--lib/libssl/ssl_ciph.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/ssl_ciph.c b/lib/libssl/ssl_ciph.c
index b1d684b8597..20a9005ee22 100644
--- a/lib/libssl/ssl_ciph.c
+++ b/lib/libssl/ssl_ciph.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_ciph.c,v 1.110 2020/01/26 12:39:16 inoguchi Exp $ */
+/* $OpenBSD: ssl_ciph.c,v 1.111 2020/04/09 17:22:52 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1201,7 +1201,7 @@ ssl_create_cipher_list(const SSL_METHOD *ssl_method,
ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_ADD, -1, &head, &tail);
ssl_cipher_apply_rule(0, SSL_kECDHE, 0, 0, 0, 0, 0, CIPHER_DEL, -1, &head, &tail);
- if (ssl_aes_is_accelerated() == 1) {
+ if (ssl_aes_is_accelerated()) {
/*
* We have hardware assisted AES - prefer AES as a symmetric
* cipher, with CHACHA20 second.