diff options
Diffstat (limited to 'crypto/idea')
-rw-r--r-- | crypto/idea/Makefile.ssl | 2 | ||||
-rw-r--r-- | crypto/idea/idea.h | 4 | ||||
-rw-r--r-- | crypto/idea/ideatest.c | 10 |
3 files changed, 14 insertions, 2 deletions
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 <stdio.h> #include <string.h> #include <stdlib.h> + +#ifdef NO_IDEA +int main(int argc, char *argv[]) +{ + printf("No IDEA support\n"); + return(0); +} +#else #include <openssl/idea.h> unsigned char k[16]={ @@ -219,4 +227,4 @@ static char *pt(unsigned char *p) ret[16]='\0'; return(ret); } - +#endif |