提交 aff686df 编写于 作者: A Andy Polyakov

Fix unsigned/signed warnings in ssl.

上级 637f9062
......@@ -1824,8 +1824,7 @@ err:
int ssl3_get_cert_status(SSL *s)
{
int ok, al;
unsigned long resplen;
long n;
unsigned long resplen,n;
const unsigned char *p;
n=s->method->ssl_get_message(s,
......
......@@ -793,8 +793,8 @@ int tls1_final_finish_mac(SSL *s,
{
if (mask & s->s3->tmp.new_cipher->algorithm2)
{
int hashsize = EVP_MD_size(md);
if ((size_t)hashsize > (sizeof buf - (size_t)(q-buf)))
unsigned int hashsize = EVP_MD_size(md);
if (hashsize > (sizeof buf - (size_t)(q-buf)))
{
/* internal error: 'buf' is too small for this cipersuite! */
err = 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册