From aff686df91d856511cf3570b7d8755300da22451 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Sat, 5 Jan 2008 21:35:34 +0000 Subject: [PATCH] Fix unsigned/signed warnings in ssl. --- ssl/s3_clnt.c | 3 +-- ssl/t1_enc.c | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index ebdc239cb3..74f5abe13c 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -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, diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index ee511a6512..3a349920d9 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -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; -- 2.25.1