diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-01-11 20:34:23 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-01-11 20:34:23 +0000 |
commit | d7ecd42255574b775104a7610164a29c1ebfe47f (patch) | |
tree | 0577e705a977961d8cc9ad60bf69f950520afcea /ssl/t1_enc.c | |
parent | 41b761959695b990d481d6122473201ba9cc5813 (diff) | |
download | openssl-d7ecd42255574b775104a7610164a29c1ebfe47f.tar.gz |
Fix warnings properly this time ;-)
Diffstat (limited to 'ssl/t1_enc.c')
-rw-r--r-- | ssl/t1_enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/t1_enc.c b/ssl/t1_enc.c index d9b93f5857..e351738237 100644 --- a/ssl/t1_enc.c +++ b/ssl/t1_enc.c @@ -805,8 +805,8 @@ int tls1_final_finish_mac(SSL *s, { if (mask & s->s3->tmp.new_cipher->algorithm2) { - unsigned int hashsize = EVP_MD_size(md); - if (hashsize < 0 || hashsize > (sizeof buf - (size_t)(q-buf))) + int hashsize = EVP_MD_size(md); + if (hashsize < 0 || hashsize > (int)(sizeof buf - (size_t)(q-buf))) { /* internal error: 'buf' is too small for this cipersuite! */ err = 1; @@ -815,7 +815,7 @@ int tls1_final_finish_mac(SSL *s, { EVP_MD_CTX_copy_ex(&ctx,s->s3->handshake_dgst[idx]); EVP_DigestFinal_ex(&ctx,q,&i); - if (i != hashsize) /* can't really happen */ + if (i != (unsigned int)hashsize) /* can't really happen */ err = 1; q+=i; } |