aboutsummaryrefslogtreecommitdiffstats
path: root/common/compliance.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2017-06-13 07:01:24 +0000
committerWerner Koch <[email protected]>2017-06-13 07:01:24 +0000
commit7c91b48f0e80266cf7491c2bb7d8aabc12362643 (patch)
treee2bb88da01a577474415a921a01185977fca8515 /common/compliance.c
parentgpg: Send gpgcompose --help output to stdout, not stderr. (diff)
downloadgnupg-7c91b48f0e80266cf7491c2bb7d8aabc12362643.tar.gz
gnupg-7c91b48f0e80266cf7491c2bb7d8aabc12362643.zip
common: Fix -Wswitch warning.
* common/compliance.c (gnupg_digest_is_allowed): Don't include GCRY_MD_WHIRLPOOL because it is not a digest_algo_t. -- Note that Whirlpool is not used anywhere in gpg or gpgsm. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/compliance.c')
-rw-r--r--common/compliance.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/compliance.c b/common/compliance.c
index 4078004a9..b19112c3a 100644
--- a/common/compliance.c
+++ b/common/compliance.c
@@ -432,7 +432,6 @@ gnupg_digest_is_allowed (enum gnupg_compliance_mode compliance, int producer,
case DIGEST_ALGO_RMD160:
return ! producer;
case DIGEST_ALGO_MD5:
- case GCRY_MD_WHIRLPOOL:
return ! producer && module == GNUPG_MODULE_NAME_GPGSM;
default:
return 0;