提交 5b331ab7 编写于 作者: B Bodo Möller

We should check the eight bytes starting at p[-9] for rollback attack

detection, or the probability for an erroneous RSA_R_SSLV3_ROLLBACK_ATTACK
will be larger than necessary.

PR: 1695
上级 dd6f479e
......@@ -130,7 +130,7 @@ int RSA_padding_check_SSLv23(unsigned char *to, int tlen,
RSAerr(RSA_F_RSA_PADDING_CHECK_SSLV23,RSA_R_NULL_BEFORE_BLOCK_MISSING);
return(-1);
}
for (k= -8; k<0; k++)
for (k = -9; k<-1; k++)
{
if (p[k] != 0x03) break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册