Apply a small patch from Oscar Jacobsson <oscar@jacobsson.org> that
authorRichard Levitte <levitte@openssl.org>
Sat, 26 Jan 2002 04:50:41 +0000 (04:50 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 26 Jan 2002 04:50:41 +0000 (04:50 +0000)
makes things more compilable with VC++.

crypto/bio/bss_conn.c
crypto/ec/ec_mult.c

index 177e566..f91ae4c 100644 (file)
@@ -614,7 +614,7 @@ static long conn_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
                {
        case BIO_CTRL_SET_CALLBACK:
                {
-               data->info_callback=(int (*)())fp;
+               data->info_callback=(int (*)(const struct bio_st *, int, int))fp;
                }
                break;
        default:
index 2c430c8..f14f8d8 100644 (file)
@@ -336,7 +336,7 @@ int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
                
                for (i = 0; i < totalnum; i++)
                        {
-                       if (wNAF_len[i] > k)
+                       if (wNAF_len[i] > (size_t)k)
                                {
                                int digit = wNAF[i][k];
                                int is_neg;