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/idea/Makefile.ssl | 2 +- crypto/idea/idea.h | 4 ++++ crypto/idea/ideatest.c | 10 +++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) (limited to 'crypto/idea') diff --git a/crypto/idea/Makefile.ssl b/crypto/idea/Makefile.ssl index b643086dab..a61defe6f5 100644 --- a/crypto/idea/Makefile.ssl +++ b/crypto/idea/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/idea/idea.h b/crypto/idea/idea.h index 0075426d94..ae32f5692e 100644 --- a/crypto/idea/idea.h +++ b/crypto/idea/idea.h @@ -63,6 +63,10 @@ extern "C" { #endif +#ifdef NO_IDEA +#error IDEA is disabled. +#endif + #define IDEA_ENCRYPT 1 #define IDEA_DECRYPT 0 diff --git a/crypto/idea/ideatest.c b/crypto/idea/ideatest.c index 4593d9e694..64b9353e41 100644 --- a/crypto/idea/ideatest.c +++ b/crypto/idea/ideatest.c @@ -59,6 +59,14 @@ #include #include #include + +#ifdef NO_IDEA +int main(int argc, char *argv[]) +{ + printf("No IDEA support\n"); + return(0); +} +#else #include unsigned char k[16]={ @@ -219,4 +227,4 @@ static char *pt(unsigned char *p) ret[16]='\0'; return(ret); } - +#endif -- cgit v1.2.3