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/mdc2/Makefile.ssl | 2 +- crypto/mdc2/mdc2.h | 4 ++++ crypto/mdc2/mdc2test.c | 14 +++++++++++++- 3 files changed, 18 insertions(+), 2 deletions(-) (limited to 'crypto/mdc2') diff --git a/crypto/mdc2/Makefile.ssl b/crypto/mdc2/Makefile.ssl index 924a8b3fbe..eb0f0d627e 100644 --- a/crypto/mdc2/Makefile.ssl +++ b/crypto/mdc2/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/mdc2/mdc2.h b/crypto/mdc2/mdc2.h index 39a6c9e9ff..ec8e159fc9 100644 --- a/crypto/mdc2/mdc2.h +++ b/crypto/mdc2/mdc2.h @@ -65,6 +65,10 @@ extern "C" { #include +#ifdef NO_MDC2 +#error MDC2 is disabled. +#endif + #define MDC2_BLOCK 8 #define MDC2_DIGEST_LENGTH 16 diff --git a/crypto/mdc2/mdc2test.c b/crypto/mdc2/mdc2test.c index f627162988..6fc6c0ed00 100644 --- a/crypto/mdc2/mdc2test.c +++ b/crypto/mdc2/mdc2test.c @@ -59,6 +59,18 @@ #include #include #include + +#ifdef NO_DES +#define NO_MDC2 +#endif + +#ifdef NO_MDC2 +int main(int argc, char *argv[]) +{ + printf("No MDC2 support\n"); + return(0); +} +#else #include static unsigned char pad1[16]={ @@ -117,4 +129,4 @@ int main(int argc, char *argv[]) exit(ret); return(ret); } - +#endif -- cgit v1.2.3