Avoid signed/unsigned compare warnings.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 29 Dec 2008 00:17:36 +0000 (00:17 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 29 Dec 2008 00:17:36 +0000 (00:17 +0000)
ssl/s3_clnt.c
test/igetest.c

index 1ef9a86be4b98ef785fc0605f320b013e76586cc..837507cce1b41289e3faa653ddef835c371cc8d5 100644 (file)
@@ -1777,7 +1777,7 @@ int ssl3_get_cert_status(SSL *s)
                goto f_err;
                }
        n2l3(p, resplen);
-       if (resplen + 4 != n)
+       if (resplen + 4 != (unsigned long)n)
                {
                al = SSL_AD_DECODE_ERROR;
                SSLerr(SSL_F_SSL3_GET_CERT_STATUS,SSL_R_LENGTH_MISMATCH);
index 95452d096570e2d4c06c3484fc6abc12c42309f4..a2578d09c5a430c5472856ed175a62d36c8198c3 100644 (file)
@@ -190,7 +190,7 @@ static struct bi_ige_test const bi_ige_test_vectors[] = {
 
 static int run_test_vectors(void)
        {
-       int n;
+       unsigned int n;
        int errs = 0;
 
        for(n=0 ; n < sizeof(ige_test_vectors)/sizeof(ige_test_vectors[0]) ; ++n)
@@ -292,7 +292,7 @@ int main(int argc, char **argv)
        unsigned char iv[AES_BLOCK_SIZE*4];
        unsigned char saved_iv[AES_BLOCK_SIZE*4];
        int err = 0;
-       int n;
+       unsigned int n;
        unsigned matches;
 
        assert(BIG_TEST_SIZE >= TEST_SIZE);