summaryrefslogtreecommitdiffstats
path: root/ssl/s3_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 13:56:13 +0000
commit1326a64a3301310e0a8d45d9e5651f651c9f30b2 (patch)
tree40ff03bad6a17b1dc19ca88ded609a1c15d7545e /ssl/s3_enc.c
parente0da2c2ed29a3a66c22e6a8a5072b58399835d71 (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/s3_enc.c')
-rw-r--r--ssl/s3_enc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ssl/s3_enc.c b/ssl/s3_enc.c
index 98f3894954..0282ef4620 100644
--- a/ssl/s3_enc.c
+++ b/ssl/s3_enc.c
@@ -552,11 +552,7 @@ int ssl3_enc(SSL *s, int send)
if (!send)
{
if (l == 0 || l%bs != 0)
- {
- SSLerr(SSL_F_SSL3_ENC,SSL_R_BLOCK_CIPHER_PAD_IS_WRONG);
- ssl3_send_alert(s,SSL3_AL_FATAL,SSL_AD_DECRYPTION_FAILED);
return 0;
- }
/* otherwise, rec->length >= bs */
}