summaryrefslogtreecommitdiffstats
path: root/ssl/s3_enc.c
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2013-01-28 17:34:33 +0000
committerBen Laurie <ben@links.org>2013-01-28 17:34:33 +0000
commit9f27de170d1b7bef3d46d41382dc4dafde8b3900 (patch)
tree1d224a7727fc7a834f632bbc790902caa32bdcd3 /ssl/s3_enc.c
parent6cb19b7681f600b2f165e4adc57547b097b475fd (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.
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 e963efd47f..a0eac77d7d 100644
--- a/ssl/s3_enc.c
+++ b/ssl/s3_enc.c
@@ -531,11 +531,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 */
}