New Configure option no-<cipher> (rsa, idea, rc5, ...).
diff --git a/crypto/dsa/Makefile.ssl b/crypto/dsa/Makefile.ssl index e80750b..435349c 100644 --- a/crypto/dsa/Makefile.ssl +++ b/crypto/dsa/Makefile.ssl
@@ -65,7 +65,7 @@ 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/dsa/dsa.h b/crypto/dsa/dsa.h index 3fc1519..d9ff193 100644 --- a/crypto/dsa/dsa.h +++ b/crypto/dsa/dsa.h
@@ -69,6 +69,10 @@ extern "C" { #endif +#ifdef NO_DSA +#error DSA is disabled. +#endif + #include <openssl/bn.h> #define DSA_FLAG_CACHE_MONT_P 0x01
diff --git a/crypto/dsa/dsatest.c b/crypto/dsa/dsatest.c index c020993..363eab6 100644 --- a/crypto/dsa/dsatest.c +++ b/crypto/dsa/dsatest.c
@@ -65,11 +65,19 @@ #include <openssl/rand.h> #include <openssl/bio.h> #include <openssl/err.h> -#include <openssl/dsa.h> #ifdef WINDOWS #include "../bio/bss_file.c" #endif +#ifdef NO_DSA +int main(int argc, char *argv[]) +{ + printf("No DSA support\n"); + return(0); +} +#else +#include <openssl/dsa.h> + #ifdef WIN16 #define MS_CALLBACK _far _loadds #else @@ -206,5 +214,4 @@ exit(1); } } - - +#endif