From 180eb5b3c2b9558ef758a2674b868394f5fb4a7a Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Tue, 4 Dec 2007 20:30:49 +0000 Subject: [PATCH] gmp engine was non-operational. --- engines/e_gmp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/engines/e_gmp.c b/engines/e_gmp.c index 39da65f74b..f7126d8621 100644 --- a/engines/e_gmp.c +++ b/engines/e_gmp.c @@ -57,10 +57,10 @@ */ /* This engine is not (currently) compiled in by default. Do enable it, - * reconfigure OpenSSL with "-DOPENSSL_USE_GMP -lgmp". The GMP libraries and + * reconfigure OpenSSL with "enable-gmp -lgmp". The GMP libraries and * headers must reside in one of the paths searched by the compiler/linker, * otherwise paths must be specified - eg. try configuring with - * "-DOPENSSL_USE_GMP -I -L -lgmp". YMMV. */ + * "enable-gmp -I -L -lgmp". YMMV. */ /* As for what this does - it's a largely unoptimised implementation of an * ENGINE that uses the GMP library to perform RSA private key operations. To @@ -87,7 +87,7 @@ #include #ifndef OPENSSL_NO_HW -#if defined(OPENSSL_USE_GMP) && !defined(OPENSSL_NO_HW_GMP) +#ifndef OPENSSL_NO_GMP #include @@ -417,7 +417,7 @@ static int e_gmp_rsa_mod_exp(BIGNUM *r, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) /* This stuff is needed if this ENGINE is being compiled into a self-contained * shared-library. */ -#ifdef ENGINE_DYNAMIC_SUPPORT +#ifndef ENGINE_NO_DYNAMIC_SUPPORT static int bind_fn(ENGINE *e, const char *id) { if(id && (strcmp(id, engine_e_gmp_id) != 0)) @@ -430,6 +430,6 @@ IMPLEMENT_DYNAMIC_CHECK_FN() IMPLEMENT_DYNAMIC_BIND_FN(bind_fn) #endif /* ENGINE_DYNAMIC_SUPPORT */ -#endif /* !OPENSSL_NO_HW_GMP */ +#endif /* !OPENSSL_NO_GMP */ #endif /* !OPENSSL_NO_HW */ -- 2.40.0