aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2020-11-09 11:21:27 +0000
committerWerner Koch <[email protected]>2020-11-09 11:21:27 +0000
commit21d5323f5d029758fd55eae1dfdfb88b718ceada (patch)
treed2816ca8266cc2fd6d84f63cfb2f4ba0fd7afbee
parentRequire libksba 1.3.5 (diff)
downloadgnupg-21d5323f5d029758fd55eae1dfdfb88b718ceada.tar.gz
gnupg-21d5323f5d029758fd55eae1dfdfb88b718ceada.zip
gpg: Fix recent commit for weak digest algos and smartcards.
* g10/sign.c (sign_file): Fix condition. -- Fixes-commit: 4c181d51a6f1fd05b7f190a18769ba5e9f892f6a Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--g10/sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/sign.c b/g10/sign.c
index 8d575a100..b437190af 100644
--- a/g10/sign.c
+++ b/g10/sign.c
@@ -1095,7 +1095,7 @@ sign_file (ctrl_t ctrl, strlist_t filenames, int detached, strlist_t locusr,
single hash for all signatures. All this may well have
to change as the cards add algorithms. */
- if (!smartcard || (smartcard && hint.digest_length==20)
+ if ((!smartcard || (smartcard && hint.digest_length==20))
&& (algo = select_algo_from_prefs(pk_list,PREFTYPE_HASH,
-1,&hint)) > 0)
{