Implementation of pkey_rsa_verify. Some constification.
[openssl.git] / engines / e_gmp.c
index 8d778fcbf73f4277f733e49df9c210287b1f0f32..39da65f74bf136428e3da8fd903e2fef2979da2a 100644 (file)
 static int e_gmp_destroy(ENGINE *e);
 static int e_gmp_init(ENGINE *e);
 static int e_gmp_finish(ENGINE *e);
-static int e_gmp_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)()); 
+static int e_gmp_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void)); 
 
 #ifndef OPENSSL_NO_RSA
 /* RSA stuff */
-static int e_gmp_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa);
+static int e_gmp_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa, BN_CTX *ctx);
 static int e_gmp_rsa_finish(RSA *r);
 #endif
 
@@ -230,7 +230,7 @@ static int e_gmp_finish(ENGINE *e)
        return 1;
        }
 
-static int e_gmp_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)())
+static int e_gmp_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
        {
        int to_return = 1;
 
@@ -361,7 +361,7 @@ static int e_gmp_rsa_finish(RSA *rsa)
        return 1;
        }
 
-static int e_gmp_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa)
+static int e_gmp_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
        {
        E_GMP_RSA_CTX *hptr;
        int to_return = 0;