Fix unsigned/signed warnings in ssl.
authorAndy Polyakov <appro@openssl.org>
Sat, 5 Jan 2008 21:35:34 +0000 (21:35 +0000)
committerAndy Polyakov <appro@openssl.org>
Sat, 5 Jan 2008 21:35:34 +0000 (21:35 +0000)
ssl/s3_clnt.c
ssl/t1_enc.c

index ebdc239..74f5abe 100644 (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,
index ee511a6..3a34992 100644 (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;