Fix unsigned/signed warnings in ssl.

This commit is contained in:
Andy Polyakov 2008-01-05 21:35:34 +00:00
parent 637f90621d
commit aff686df91
2 changed files with 3 additions and 4 deletions

View File

@ -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,

View File

@ -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;