aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/md5
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/md5
parentb64f825671861144e1c24f2a5498a95a083021cd (diff)
downloadopenssl-f5d7a031a3c3e7b1700a67d6dc19daf3718ce6ee.tar.gz
New Configure option no-<cipher> (rsa, idea, rc5, ...).
Diffstat (limited to 'crypto/md5')
-rw-r--r--crypto/md5/Makefile.ssl2
-rw-r--r--crypto/md5/md5.h4
-rw-r--r--crypto/md5/md5test.c9
3 files changed, 14 insertions, 1 deletions
diff --git a/crypto/md5/Makefile.ssl b/crypto/md5/Makefile.ssl
index f91b46289f..4a78035697 100644
--- a/crypto/md5/Makefile.ssl
+++ b/crypto/md5/Makefile.ssl
@@ -89,7 +89,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/md5/md5.h b/crypto/md5/md5.h
index fc767872ed..6e97fe1e4f 100644
--- a/crypto/md5/md5.h
+++ b/crypto/md5/md5.h
@@ -63,6 +63,10 @@
extern "C" {
#endif
+#ifdef NO_MD5
+#error MD5 is disabled.
+#endif
+
#define MD5_CBLOCK 64
#define MD5_LBLOCK 16
#define MD5_BLOCK 16
diff --git a/crypto/md5/md5test.c b/crypto/md5/md5test.c
index 2778b40ef6..a192a62bb3 100644
--- a/crypto/md5/md5test.c
+++ b/crypto/md5/md5test.c
@@ -59,6 +59,14 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+
+#ifdef NO_MD5
+int main(int argc, char *argv[])
+{
+ printf("No MD5 support\n");
+ return(0);
+}
+#else
#include <openssl/md5.h>
char *test[]={
@@ -120,3 +128,4 @@ static char *pt(unsigned char *md)
sprintf(&(buf[i*2]),"%02x",md[i]);
return(buf);
}
+#endif