diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-01-11 15:58:51 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-01-11 15:58:51 +0000 |
commit | 211655fcdd745a5dc0043df7ae2e9e71d17968db (patch) | |
tree | 1cd6d7fd6ba76f6a266b4f8058f45d97ad88b6d3 | |
parent | 363bd0b48e869068d4b6b434def9905ad8de87e8 (diff) |
Fix sign-compare warnings.
-rw-r--r-- | ssl/s2_pkt.c | 2 | ||||
-rw-r--r-- | ssl/t1_enc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s2_pkt.c b/ssl/s2_pkt.c index 9c1d1313c1..1a54765fec 100644 --- a/ssl/s2_pkt.c +++ b/ssl/s2_pkt.c @@ -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) diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index b482f6cf9c..d9b93f5857 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -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! */ |