summaryrefslogtreecommitdiffstats
path: root/ssl/t1_enc.c
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2013-01-28 17:34:33 +0000
committerDr. Stephen Henson <steve@openssl.org>2013-02-06 14:19:07 +0000
commite33ac0e71d9ea52143333223a318b38f3ce1ee52 (patch)
tree3b16600f753e187393f2a4b60515e9fcc9cf04e6 /ssl/t1_enc.c
parent93cab6b319e354517841ae202fb884f7e45bb48e (diff)
Update DTLS code to match CBC decoding in TLS.
This change updates the DTLS code to match the constant-time CBC behaviour in the TLS. (cherry picked from commit 9f27de170d1b7bef3d46d41382dc4dafde8b3900)
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r--ssl/t1_enc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c
index 4b31742783..c7759ebf14 100644
--- a/ssl/t1_enc.c
+++ b/ssl/t1_enc.c
@@ -849,11 +849,7 @@ int tls1_enc(SSL *s, int send)
if (!send)
{
if (l == 0 || l%bs != 0)
- {
- SSLerr(SSL_F_TLS1_ENC,SSL_R_BLOCK_CIPHER_PAD_IS_WRONG);
- ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_DECRYPTION_FAILED);
return 0;
- }
}
i = EVP_Cipher(ds,rec->data,rec->input,l);