Commit 211655fc authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Fix sign-compare warnings.

parent 363bd0b4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 *p;
	int i;
	int mac_size;
	unsigned int mac_size;

 ssl2_read_again:
	if (SSL_in_init(s) && !s->in_handshake)
+1 −1
Original line number Diff line number Diff line
@@ -805,7 +805,7 @@ int tls1_final_finish_mac(SSL *s,
		{
		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)))
				{
				/* internal error: 'buf' is too small for this cipersuite! */