mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpgsm: Silence the fingerprint output in quiet mode.
* sm/certchain.c (ask_marktrusted): Avoid fingerprint printing in quiet mode -- And also don't print it anymore after the agent told us that the feature has been disabled.
This commit is contained in:
parent
ce0580a599
commit
8190853642
@ -1527,13 +1527,17 @@ ask_marktrusted (ctrl_t ctrl, ksba_cert_t cert, int listmode)
|
|||||||
{
|
{
|
||||||
static int no_more_questions;
|
static int no_more_questions;
|
||||||
int rc;
|
int rc;
|
||||||
char *fpr;
|
|
||||||
int success = 0;
|
int success = 0;
|
||||||
|
|
||||||
fpr = gpgsm_get_fingerprint_string (cert, GCRY_MD_SHA1);
|
if (opt.quiet || no_more_questions)
|
||||||
es_fflush (es_stdout);
|
es_fflush (es_stdout);
|
||||||
log_info (_("fingerprint=%s\n"), fpr? fpr : "?");
|
else
|
||||||
xfree (fpr);
|
{
|
||||||
|
char *fpr = gpgsm_get_fingerprint_string (cert, GCRY_MD_SHA1);
|
||||||
|
es_fflush (es_stdout);
|
||||||
|
log_info (_("fingerprint=%s\n"), fpr? fpr : "?");
|
||||||
|
xfree (fpr);
|
||||||
|
}
|
||||||
|
|
||||||
if (no_more_questions)
|
if (no_more_questions)
|
||||||
rc = gpg_error (GPG_ERR_NOT_SUPPORTED);
|
rc = gpg_error (GPG_ERR_NOT_SUPPORTED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user