diff options
author | Andy Polyakov <appro@openssl.org> | 2008-01-05 21:35:34 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-01-05 21:35:34 +0000 |
commit | aff686df91d856511cf3570b7d8755300da22451 (patch) | |
tree | 349953877780e5cd7e0e620792f2f08e17834a74 /ssl | |
parent | 637f90621d11b35a255f52c5c45301491a60e79e (diff) |
Fix unsigned/signed warnings in ssl.
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/s3_clnt.c | 3 | ||||
-rw-r--r-- | 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; |