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/bf | |
parent | b64f825671861144e1c24f2a5498a95a083021cd (diff) |
New Configure option no-<cipher> (rsa, idea, rc5, ...).
Diffstat (limited to 'crypto/bf')
-rw-r--r-- | crypto/bf/Makefile.ssl | 2 | ||||
-rw-r--r-- | crypto/bf/bftest.c | 9 | ||||
-rw-r--r-- | crypto/bf/blowfish.h | 4 |
3 files changed, 14 insertions, 1 deletions
diff --git a/crypto/bf/Makefile.ssl b/crypto/bf/Makefile.ssl index b1de95010c..225d818eca 100644 --- a/crypto/bf/Makefile.ssl +++ b/crypto/bf/Makefile.ssl @@ -91,7 +91,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/bf/bftest.c b/crypto/bf/bftest.c index 091c8081a9..80182c0a2f 100644 --- a/crypto/bf/bftest.c +++ b/crypto/bf/bftest.c @@ -62,6 +62,14 @@ #include <stdio.h> #include <string.h> #include <stdlib.h> + +#ifdef NO_BF +int main(int argc, char *argv[]) +{ + printf("No BF support\n"); + return(0); +} +#else #include <openssl/blowfish.h> char *bf_key[2]={ @@ -511,3 +519,4 @@ static int test(void) return(err); } +#endif diff --git a/crypto/bf/blowfish.h b/crypto/bf/blowfish.h index 005d0ed7b6..a18dfee1a4 100644 --- a/crypto/bf/blowfish.h +++ b/crypto/bf/blowfish.h @@ -63,6 +63,10 @@ extern "C" { #endif +#ifdef NO_BF +#error BF is disabled. +#endif + #define BF_ENCRYPT 1 #define BF_DECRYPT 0 |