summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-08-28 15:16:58 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-08-29 14:07:37 +0200
commit90d8654b91d9480f09900771453b719306ce2bf0 (patch)
treed9927e004b9cd05a9a5bdea25c924c80f3818495 /src
parentc873f6de28e10114d6c58ce2b6043049757853ef (diff)
downloadgnutls-90d8654b91d9480f09900771453b719306ce2bf0.tar.gz
tools: removed re-using PIN message when in non-verbose mode
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/common.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common.c b/src/common.c
index 8147d0a045..dcce8a5b57 100644
--- a/src/common.c
+++ b/src/common.c
@@ -1020,9 +1020,11 @@ pin_callback(void *user, int attempt, const char *token_url,
exit(1);
}
- fprintf(stderr,
- "Re-using cached PIN for token '%s'\n",
- token_label);
+ if (info && info->verbose) {
+ fprintf(stderr,
+ "Re-using cached PIN for token '%s'\n",
+ token_label);
+ }
strcpy(pin, cached_pin);
cache--;
return 0;