diff options
author | Ulf Möller <ulf@openssl.org> | 1999-04-27 01:14:46 +0000 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 1999-04-27 01:14:46 +0000 |
commit | f5d7a031a3c3e7b1700a67d6dc19daf3718ce6ee (patch) | |
tree | f5db72824de4586c35cef513ed48aff0d4b69a6b /crypto/hmac | |
parent | b64f825671861144e1c24f2a5498a95a083021cd (diff) |
New Configure option no-<cipher> (rsa, idea, rc5, ...).
Diffstat (limited to 'crypto/hmac')
-rw-r--r-- | crypto/hmac/Makefile.ssl | 2 | ||||
-rw-r--r-- | crypto/hmac/hmac.h | 4 | ||||
-rw-r--r-- | crypto/hmac/hmactest.c | 9 |
3 files changed, 14 insertions, 1 deletions
diff --git a/crypto/hmac/Makefile.ssl b/crypto/hmac/Makefile.ssl index f6d3bd13b2..6e1f964ead 100644 --- a/crypto/hmac/Makefile.ssl +++ b/crypto/hmac/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/hmac/hmac.h b/crypto/hmac/hmac.h index 2efce942e2..91b2f8d663 100644 --- a/crypto/hmac/hmac.h +++ b/crypto/hmac/hmac.h @@ -62,6 +62,10 @@ extern "C" { #endif +#ifdef NO_HMAC +#error No HMAC support. +#endif + #include <openssl/evp.h> #define HMAC_MAX_MD_CBLOCK 64 diff --git a/crypto/hmac/hmactest.c b/crypto/hmac/hmactest.c index 0a3db6852c..15eb0c416f 100644 --- a/crypto/hmac/hmactest.c +++ b/crypto/hmac/hmactest.c @@ -59,6 +59,14 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> + +#ifdef NO_HMAC +int main(int argc, char *argv[]) +{ + printf("No HMAC support\n"); + return(0); +} +#else #include <openssl/hmac.h> struct test_st @@ -137,3 +145,4 @@ static char *pt(unsigned char *md) sprintf(&(buf[i*2]),"%02x",md[i]); return(buf); } +#endif |