aboutsummaryrefslogtreecommitdiffstats
path: root/cipher/md.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-02-21 20:49:58 +0000
committerDavid Shaw <[email protected]>2003-02-21 20:49:58 +0000
commit5e9d144a530d226ebb0379dd0fa4e0b911ab0910 (patch)
treeff1945f6ee7b9a0fd3753bf6bf3f526605ff7156 /cipher/md.c
parent* g10.c (main): Use 3DES instead of CAST5 if we don't have CAST5 support. (diff)
downloadgnupg-5e9d144a530d226ebb0379dd0fa4e0b911ab0910.tar.gz
gnupg-5e9d144a530d226ebb0379dd0fa4e0b911ab0910.zip
* cipher.c (setup_cipher_table): #ifdef all optional ciphers.
* md.c (load_digest_module): #ifdef all optional digests.
Diffstat (limited to 'cipher/md.c')
-rw-r--r--cipher/md.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cipher/md.c b/cipher/md.c
index 1b139568c..0e5f5f8cd 100644
--- a/cipher/md.c
+++ b/cipher/md.c
@@ -96,7 +96,7 @@ load_digest_module (void)
/* We load them in reverse order so that the most
frequently used are the first in the list. */
-#ifdef USE_TIGER
+#ifdef USE_TIGER192
if (!new_list_item (DIGEST_ALGO_TIGER, tiger_get_info))
BUG();
#endif
@@ -106,8 +106,10 @@ load_digest_module (void)
if (!new_list_item (DIGEST_ALGO_SHA384, sha384_get_info))
BUG ();
#endif
+#ifdef USE_SHA256
if (!new_list_item (DIGEST_ALGO_SHA256, sha256_get_info))
BUG ();
+#endif
if (!new_list_item (DIGEST_ALGO_MD5, md5_get_info))
BUG ();
if (!new_list_item (DIGEST_ALGO_RMD160, rmd160_get_info))