Double free in i2o_ECPublicKey
[openssl.git] / engines / e_4758cca.c
index b29b2b8b9b5c53faa746ec6bd2436ea27983f5a6..443182bd31e95c676455341841b401ac5c8a50f1 100644 (file)
@@ -108,7 +108,7 @@ static int getModulusAndExponent(const unsigned char *token, long *exponentLengt
 
 /* RAND number functions */
 /*-----------------------*/
-static int cca_get_random_bytes(unsigned char*, size_t);
+static int cca_get_random_bytes(unsigned char*, int);
 static int cca_random_status(void);
 
 #ifndef OPENSSL_NO_RSA
@@ -927,7 +927,7 @@ static int cca_random_status(void)
        return 1;
        }
 
-static int cca_get_random_bytes(unsigned char* buf, size_t num)
+static int cca_get_random_bytes(unsigned char* buf, int num)
        {
        long ret_code;
        long reason_code;