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 ebdc239cb31f72c87b6edf171b38dec1585fb222..74f5abe13c173781d5f6ff49c234677c128214cf 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 ee511a6512169857d527403b8365927e761e2abe..3a349920d9cd2144e73472f43b98f46fc59c74cf 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;