X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=engines%2Fe_nuron.c;h=4c2537cbc30d6f7b97128aad0ac663efbd785574;hb=395a6c69bda18dc8111d73e08ad771ec9fc5ed78;hp=f9c3795033354e68ce4fcde21f5b942a01cdaef1;hpb=0e4aa0d2d2807e0cbeac29b65d2b9061daed8941;p=oweals%2Fopenssl.git diff --git a/engines/e_nuron.c b/engines/e_nuron.c index f9c3795033..4c2537cbc3 100644 --- a/engines/e_nuron.c +++ b/engines/e_nuron.c @@ -62,7 +62,16 @@ #include #include #include - +#ifndef OPENSSL_NO_RSA +#include +#endif +#ifndef OPENSSL_NO_DSA +#include +#endif +#ifndef OPENSSL_NO_DH +#include +#endif +#include #ifndef OPENSSL_NO_HW #ifndef OPENSSL_NO_HW_NURON @@ -156,7 +165,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 +201,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 @@ -239,11 +248,13 @@ static int nuron_mod_exp_dsa(DSA *dsa, BIGNUM *r, BIGNUM *a, #endif /* This function is aliased to mod_exp (with the mont stuff dropped). */ +#ifndef OPENSSL_NO_RSA static int nuron_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx) { return nuron_mod_exp(r, a, p, m, ctx); } +#endif #ifndef OPENSSL_NO_DH /* This function is aliased to mod_exp (with the dh and mont dropped). */