diff options
author | jsing <> | 2018-09-08 14:39:41 +0000 |
---|---|---|
committer | jsing <> | 2018-09-08 14:39:41 +0000 |
commit | 55621332fb7374cfcfccae0561ed84e62513e575 (patch) | |
tree | 6575e237fe417d9d145ecd40fd08fbe4f2e17ad5 /src/lib/libssl/s3_cbc.c | |
parent | 37780a3087c4121c983c377ecfec97a37da0ce5f (diff) | |
download | openbsd-55621332fb7374cfcfccae0561ed84e62513e575.tar.gz openbsd-55621332fb7374cfcfccae0561ed84e62513e575.tar.bz2 openbsd-55621332fb7374cfcfccae0561ed84e62513e575.zip |
Remove now unused code for EVP_CIPH_FLAG_AEAD_CIPHER and EVP_CIPH_GCM_MODE.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/s3_cbc.c')
-rw-r--r-- | src/lib/libssl/s3_cbc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/lib/libssl/s3_cbc.c b/src/lib/libssl/s3_cbc.c index 8c910c5f86..a1c0ce6b90 100644 --- a/src/lib/libssl/s3_cbc.c +++ b/src/lib/libssl/s3_cbc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: s3_cbc.c,v 1.16 2017/01/23 08:08:06 beck Exp $ */ | 1 | /* $OpenBSD: s3_cbc.c,v 1.17 2018/09/08 14:39:41 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2012 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2012 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -135,12 +135,6 @@ tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, | |||
135 | 135 | ||
136 | padding_length = rec->data[rec->length - 1]; | 136 | padding_length = rec->data[rec->length - 1]; |
137 | 137 | ||
138 | if (EVP_CIPHER_flags(s->enc_read_ctx->cipher) & EVP_CIPH_FLAG_AEAD_CIPHER) { | ||
139 | /* padding is already verified */ | ||
140 | rec->length -= padding_length + 1; | ||
141 | return 1; | ||
142 | } | ||
143 | |||
144 | good = constant_time_ge(rec->length, overhead + padding_length); | 138 | good = constant_time_ge(rec->length, overhead + padding_length); |
145 | /* The padding consists of a length byte at the end of the record and | 139 | /* The padding consists of a length byte at the end of the record and |
146 | * then that many bytes of padding, all with the same value as the | 140 | * then that many bytes of padding, all with the same value as the |