common: Fix -Wswitch warning.
authorWerner Koch <wk@gnupg.org>
Tue, 13 Jun 2017 07:01:24 +0000 (09:01 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 13 Jun 2017 07:01:24 +0000 (09:01 +0200)
* 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 <wk@gnupg.org>
common/compliance.c

index 4078004..b19112c 100644 (file)
@@ -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;