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

cast to unsigned int, not to int to avoid the warning -- all these

values really are unsigned
上级 1b28ed57
......@@ -472,8 +472,8 @@ static int get_client_master_key(SSL *s)
* random master secret (Bleichenbacher attack) */
if ((i < 0) ||
((!is_export && (i != EVP_CIPHER_key_length(c)))
|| (is_export && ((i != ek) || ((int)s->s2->tmp.clear+i !=
EVP_CIPHER_key_length(c))))))
|| (is_export && ((i != ek) || (s->s2->tmp.clear+(unsigned int)i !=
(unsigned int)EVP_CIPHER_key_length(c))))))
{
ERR_clear_error();
if (is_export)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册