Don't use decryption_failed alert for TLS v1.1 or later.
This commit is contained in:
parent
a47577164c
commit
722521594c
1 changed files with 2 additions and 0 deletions
|
@ -757,6 +757,8 @@ int tls1_enc(SSL *s, int send)
|
|||
{
|
||||
if (l == 0 || l%bs != 0)
|
||||
{
|
||||
if (s->version >= TLS1_1_VERSION)
|
||||
return -1;
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue