summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2020-05-07 14:04:43 +0200
committerWerner Koch <wk@gnupg.org>2020-05-07 14:04:43 +0200
commit549998d1d057839ffe1be931bf4c46c7b4b94fab (patch)
treeb7055e3b9d8199bd374894c9aaed87195dfaa591
parentscd:nks: Get the PIN prompts right for the Signature Card (diff)
downloadgnupg2-549998d1d057839ffe1be931bf4c46c7b4b94fab.tar.xz
gnupg2-549998d1d057839ffe1be931bf4c46c7b4b94fab.zip
sm: Fix annoying warning about not yet implemented --attribute.
-- Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--sm/sign.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sm/sign.c b/sm/sign.c
index e3f1bd8bd..caf96bfa4 100644
--- a/sm/sign.c
+++ b/sm/sign.c
@@ -752,7 +752,8 @@ gpgsm_sign (ctrl_t ctrl, certlist_t signerlist,
goto leave;
}
#else
- log_info ("Note: option --attribute is ignored by this version\n");
+ if (opt.attributes)
+ log_info ("Note: option --attribute is ignored by this version\n");
#endif /*ksba >= 1.4.0 */