diff options
Diffstat (limited to 'crypto/ripemd')
-rw-r--r-- | crypto/ripemd/Makefile.ssl | 2 | ||||
-rw-r--r-- | crypto/ripemd/ripemd.h | 4 | ||||
-rw-r--r-- | crypto/ripemd/rmdtest.c | 10 |
3 files changed, 14 insertions, 2 deletions
diff --git a/crypto/ripemd/Makefile.ssl b/crypto/ripemd/Makefile.ssl index 8e81d85d52..c43c2e0c13 100644 --- a/crypto/ripemd/Makefile.ssl +++ b/crypto/ripemd/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/ripemd/ripemd.h b/crypto/ripemd/ripemd.h index b2708d59ca..ab76be4c33 100644 --- a/crypto/ripemd/ripemd.h +++ b/crypto/ripemd/ripemd.h @@ -63,6 +63,10 @@ extern "C" { #endif +#ifdef NO_RIPEMD +#error RIPEMD is disabled. +#endif + #define RIPEMD160_CBLOCK 64 #define RIPEMD160_LBLOCK 16 #define RIPEMD160_BLOCK 16 diff --git a/crypto/ripemd/rmdtest.c b/crypto/ripemd/rmdtest.c index 11737e24a6..8a19f29999 100644 --- a/crypto/ripemd/rmdtest.c +++ b/crypto/ripemd/rmdtest.c @@ -59,6 +59,14 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> + +#ifdef NO_RIPEMD +int main(int argc, char *argv[]) +{ + printf("No ripemd support\n"); + return(0); +} +#else #include <openssl/ripemd.h> char *test[]={ @@ -122,4 +130,4 @@ static char *pt(unsigned char *md) sprintf(&(buf[i*2]),"%02x",md[i]); return(buf); } - +#endif |