summaryrefslogtreecommitdiffstats
path: root/sm/gpgsm.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2019-05-27 15:44:16 +0200
committerWerner Koch <wk@gnupg.org>2019-05-27 15:44:16 +0200
commit521e7d4644ed365ab2de3dfaa6c3728ca10ba79b (patch)
tree94556643005d7673be83d587ca58c6d73db18cb2 /sm/gpgsm.h
parentgpg: Fixed i18n markup of some strings. (diff)
downloadgnupg2-521e7d4644ed365ab2de3dfaa6c3728ca10ba79b.tar.xz
gnupg2-521e7d4644ed365ab2de3dfaa6c3728ca10ba79b.zip
sm: Avoid confusing diagnostic for the default key.
* sm/certlist.c (cert_usage_p): Add arg 'silent' and change all callers. (gpgsm_cert_use_sign_p): Add arg 'silent' and pass to cert_usage_p. Change all callers. * sm/sign.c (gpgsm_get_default_cert): Set SILENT when calling gpgsm_cert_use_sign_p -- GnuPG-bug-id: 4535 Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'sm/gpgsm.h')
-rw-r--r--sm/gpgsm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sm/gpgsm.h b/sm/gpgsm.h
index 4ad0afb29..65fff853a 100644
--- a/sm/gpgsm.h
+++ b/sm/gpgsm.h
@@ -337,7 +337,7 @@ int gpgsm_validate_chain (ctrl_t ctrl, ksba_cert_t cert,
int gpgsm_basic_cert_check (ctrl_t ctrl, ksba_cert_t cert);
/*-- certlist.c --*/
-int gpgsm_cert_use_sign_p (ksba_cert_t cert);
+int gpgsm_cert_use_sign_p (ksba_cert_t cert, int silent);
int gpgsm_cert_use_encrypt_p (ksba_cert_t cert);
int gpgsm_cert_use_verify_p (ksba_cert_t cert);
int gpgsm_cert_use_decrypt_p (ksba_cert_t cert);