From f5d7a031a3c3e7b1700a67d6dc19daf3718ce6ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulf=20M=C3=B6ller?= Date: Tue, 27 Apr 1999 01:14:46 +0000 Subject: New Configure option no- (rsa, idea, rc5, ...). --- crypto/rc2/Makefile.ssl | 2 +- crypto/rc2/rc2.h | 4 ++++ crypto/rc2/rc2test.c | 9 +++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'crypto/rc2') diff --git a/crypto/rc2/Makefile.ssl b/crypto/rc2/Makefile.ssl index c78a099aaa..50a46c751d 100644 --- a/crypto/rc2/Makefile.ssl +++ b/crypto/rc2/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/rc2/rc2.h b/crypto/rc2/rc2.h index 0204745f6f..9571efb755 100644 --- a/crypto/rc2/rc2.h +++ b/crypto/rc2/rc2.h @@ -63,6 +63,10 @@ extern "C" { #endif +#ifdef NO_RC2 +#error RC2 is disabled. +#endif + #define RC2_ENCRYPT 1 #define RC2_DECRYPT 0 diff --git a/crypto/rc2/rc2test.c b/crypto/rc2/rc2test.c index e6b355f434..6a5defa6ea 100644 --- a/crypto/rc2/rc2test.c +++ b/crypto/rc2/rc2test.c @@ -62,6 +62,14 @@ #include #include #include + +#ifdef NO_RC2 +int main(int argc, char *argv[]) +{ + printf("No RC2 support\n"); + return(0); +} +#else #include unsigned char RC2key[4][16]={ @@ -258,3 +266,4 @@ static char *pt(unsigned char *p) } #endif +#endif -- cgit v1.2.3