提交 211655fc 编写于 作者: D Dr. Stephen Henson

Fix sign-compare warnings.

上级 363bd0b4
...@@ -130,7 +130,7 @@ static int ssl2_read_internal(SSL *s, void *buf, int len, int peek) ...@@ -130,7 +130,7 @@ static int ssl2_read_internal(SSL *s, void *buf, int len, int peek)
unsigned char mac[MAX_MAC_SIZE]; unsigned char mac[MAX_MAC_SIZE];
unsigned char *p; unsigned char *p;
int i; int i;
int mac_size; unsigned int mac_size;
ssl2_read_again: ssl2_read_again:
if (SSL_in_init(s) && !s->in_handshake) if (SSL_in_init(s) && !s->in_handshake)
......
...@@ -805,7 +805,7 @@ int tls1_final_finish_mac(SSL *s, ...@@ -805,7 +805,7 @@ int tls1_final_finish_mac(SSL *s,
{ {
if (mask & s->s3->tmp.new_cipher->algorithm2) if (mask & s->s3->tmp.new_cipher->algorithm2)
{ {
int hashsize = EVP_MD_size(md); unsigned int hashsize = EVP_MD_size(md);
if (hashsize < 0 || hashsize > (sizeof buf - (size_t)(q-buf))) if (hashsize < 0 || hashsize > (sizeof buf - (size_t)(q-buf)))
{ {
/* internal error: 'buf' is too small for this cipersuite! */ /* internal error: 'buf' is too small for this cipersuite! */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册