summaryrefslogtreecommitdiff
path: root/src/lib/libssl/t1_enc.c
diff options
context:
space:
mode:
authorjsing <>2018-09-06 16:40:45 +0000
committerjsing <>2018-09-06 16:40:45 +0000
commit72f73019933c7339b36a51b22acc8440b8608f61 (patch)
treee66e90f0f003a49e386ad0667b3e568deec4c31a /src/lib/libssl/t1_enc.c
parenta267c63d946b543a11f0afc79e6a96b027035b7c (diff)
downloadopenbsd-72f73019933c7339b36a51b22acc8440b8608f61.tar.gz
openbsd-72f73019933c7339b36a51b22acc8440b8608f61.tar.bz2
openbsd-72f73019933c7339b36a51b22acc8440b8608f61.zip
Drop SSL_CIPHER_ALGORITHM2_AEAD flag.
All of our algorithm_mac == SSL_AEAD cipher suites use EVP_AEAD, so we can condition on that rather than having a separate redundant flag. ok tb@
Diffstat (limited to 'src/lib/libssl/t1_enc.c')
-rw-r--r--src/lib/libssl/t1_enc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/t1_enc.c b/src/lib/libssl/t1_enc.c
index 01ff05952c..77ac5899ac 100644
--- a/src/lib/libssl/t1_enc.c
+++ b/src/lib/libssl/t1_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_enc.c,v 1.112 2018/09/05 16:58:59 jsing Exp $ */ 1/* $OpenBSD: t1_enc.c,v 1.113 2018/09/06 16:40:45 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -661,7 +661,7 @@ tls1_setup_key_block(SSL *s)
661 return (1); 661 return (1);
662 662
663 if (s->session->cipher && 663 if (s->session->cipher &&
664 (s->session->cipher->algorithm2 & SSL_CIPHER_ALGORITHM2_AEAD)) { 664 (s->session->cipher->algorithm_mac & SSL_AEAD)) {
665 if (!ssl_cipher_get_evp_aead(s->session, &aead)) { 665 if (!ssl_cipher_get_evp_aead(s->session, &aead)) {
666 SSLerror(s, SSL_R_CIPHER_OR_HASH_UNAVAILABLE); 666 SSLerror(s, SSL_R_CIPHER_OR_HASH_UNAVAILABLE);
667 return (0); 667 return (0);