diff options
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 | 
