Reduce header interdependencies, initially in engine.h (the rest of the
[openssl.git] / engines / e_nuron.c
index f9c3795033354e68ce4fcde21f5b942a01cdaef1..3ddbf594dfa9c646e47f474cb8f70ff2b8c79a58 100644 (file)
@@ -62,7 +62,9 @@
 #include <openssl/buffer.h>
 #include <openssl/dso.h>
 #include <openssl/engine.h>
-
+#include <openssl/rsa.h>
+#include <openssl/dsa.h>
+#include <openssl/dh.h>
 
 #ifndef OPENSSL_NO_HW
 #ifndef OPENSSL_NO_HW_NURON
@@ -156,7 +158,7 @@ static int nuron_finish(ENGINE *e)
        return 1;
        }
 
-static int nuron_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)())
+static int nuron_ctrl(ENGINE *e, int cmd, long i, void *p, void (*f)(void))
        {
        int initialised = ((pvDSOHandle == NULL) ? 0 : 1);
        switch(cmd)
@@ -192,9 +194,9 @@ static int nuron_mod_exp(BIGNUM *r,const BIGNUM *a,const BIGNUM *p,
        }
 
 #ifndef OPENSSL_NO_RSA
-static int nuron_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa)
+static int nuron_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
        {
-       return nuron_mod_exp(r0,I,rsa->d,rsa->n,NULL);
+       return nuron_mod_exp(r0,I,rsa->d,rsa->n,ctx);
        }
 #endif