diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-27 01:14:46 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-27 01:14:46 +0000 |
commit | f5d7a031a3c3e7b1700a67d6dc19daf3718ce6ee (patch) | |
tree | f5db72824de4586c35cef513ed48aff0d4b69a6b /crypto/dh | |
parent | b64f825671861144e1c24f2a5498a95a083021cd (diff) |
New Configure option no-<cipher> (rsa, idea, rc5, ...).
Diffstat (limited to 'crypto/dh')
-rw-r--r-- | crypto/dh/Makefile.ssl | 2 | ||||
-rw-r--r-- | crypto/dh/dh.h | 4 | ||||
-rw-r--r-- | crypto/dh/dhtest.c | 9 |
3 files changed, 14 insertions, 1 deletions
diff --git a/crypto/dh/Makefile.ssl b/crypto/dh/Makefile.ssl index 1dfdd01543..eb4dc12f4e 100644 --- a/crypto/dh/Makefile.ssl +++ b/crypto/dh/Makefile.ssl @@ -65,7 +65,7 @@ lint: lint -DLINT $(INCLUDES) $(SRC)>fluff depend: - $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) + $(MAKEDEPEND) $(INCLUDES) $(DEPFLAG) $(PROGS) $(LIBSRC) dclean: $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new diff --git a/crypto/dh/dh.h b/crypto/dh/dh.h index 3ae16f3b0c..6a0a186fe3 100644 --- a/crypto/dh/dh.h +++ b/crypto/dh/dh.h @@ -63,6 +63,10 @@ extern "C" { #endif +#ifdef NO_DH +#error DH is disabled. +#endif + #include <openssl/bn.h> #define DH_FLAG_CACHE_MONT_P 0x01 diff --git a/crypto/dh/dhtest.c b/crypto/dh/dhtest.c index c638e16bba..370784b964 100644 --- a/crypto/dh/dhtest.c +++ b/crypto/dh/dhtest.c @@ -65,6 +65,14 @@ #include <openssl/crypto.h> #include <openssl/bio.h> #include <openssl/bn.h> + +#ifdef NO_DH +int main(int argc, char *argv[]) +{ + printf("No DH support\n"); + return(0); +} +#else #include <openssl/dh.h> #ifdef WIN16 @@ -177,3 +185,4 @@ static void MS_CALLBACK cb(int p, int n, char *arg) p=n; #endif } +#endif |