summaryrefslogtreecommitdiffstats
path: root/crypto/idea
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-27 01:14:46 +0000
committerUlf Möller <ulf@openssl.org>1999-04-27 01:14:46 +0000
commitf5d7a031a3c3e7b1700a67d6dc19daf3718ce6ee (patch)
treef5db72824de4586c35cef513ed48aff0d4b69a6b /crypto/idea
parentb64f825671861144e1c24f2a5498a95a083021cd (diff)
New Configure option no-<cipher> (rsa, idea, rc5, ...).
Diffstat (limited to 'crypto/idea')
-rw-r--r--crypto/idea/Makefile.ssl2
-rw-r--r--crypto/idea/idea.h4
-rw-r--r--crypto/idea/ideatest.c10
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