X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=apps%2Fgendh.c;h=4ec776ba9399a8f3a0b3aeb80b9a78d71410d2c2;hb=7f9edfd23a9b9cd0827cc381e8fbd8cd0c9e5035;hp=69baa50b01151b0dc5b857ec122519fc77f1bb78;hpb=2aaec9cced89edfdc8375b38a130fa1c35a98025;p=openssl.git diff --git a/apps/gendh.c b/apps/gendh.c index 69baa50b01..4ec776ba93 100644 --- a/apps/gendh.c +++ b/apps/gendh.c @@ -57,6 +57,7 @@ * [including the GNU Public Licence.] */ +#include /* Until the key-gen callbacks are modified to use newer prototypes, we allow * deprecated functions for openssl-internal code */ #ifdef OPENSSL_NO_DEPRECATED @@ -88,9 +89,6 @@ int MAIN(int, char **); int MAIN(int argc, char **argv) { BN_GENCB cb; -#ifndef OPENSSL_NO_ENGINE - ENGINE *e = NULL; -#endif DH *dh=NULL; int ret=1,num=DEFBITS; int g=2; @@ -162,7 +160,7 @@ bad: } #ifndef OPENSSL_NO_ENGINE - e = setup_engine(bio_err, engine, 0); + setup_engine(bio_err, engine, 0); #endif out=BIO_new(BIO_s_file()); @@ -234,4 +232,10 @@ static int MS_CALLBACK dh_cb(int p, int n, BN_GENCB *cb) #endif return 1; } +#else /* !OPENSSL_NO_DH */ + +# if PEDANTIC +static void *dummy=&dummy; +# endif + #endif