diff options
author | Werner Koch <wk@gnupg.org> | 2011-11-22 15:30:26 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2011-11-22 15:30:26 +0100 |
commit | ea9df94ec8d6b7b13bd65ea14caca015bd534460 (patch) | |
tree | a6a959e91d9c55f46a769ef040f75902685231b1 /g10/pubkey-enc.c | |
parent | Allow creating subkeys using an existing key (diff) | |
download | gnupg2-ea9df94ec8d6b7b13bd65ea14caca015bd534460.tar.xz gnupg2-ea9df94ec8d6b7b13bd65ea14caca015bd534460.zip |
Don't print anonymous recipient messages in quiet mode.
This is bug#1378.
Diffstat (limited to '')
-rw-r--r-- | g10/pubkey-enc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/g10/pubkey-enc.c b/g10/pubkey-enc.c index 680182b5d..a0fe685f4 100644 --- a/g10/pubkey-enc.c +++ b/g10/pubkey-enc.c @@ -110,13 +110,15 @@ get_session_key (PKT_pubkey_enc * k, DEK * dek) if (!(sk->pubkey_usage & PUBKEY_USAGE_ENC)) continue; keyid_from_pk (sk, keyid); - log_info (_("anonymous recipient; trying secret key %s ...\n"), - keystr (keyid)); + if (!opt.quiet) + log_info (_("anonymous recipient; trying secret key %s ...\n"), + keystr (keyid)); rc = get_it (k, dek, sk, keyid); if (!rc) { - log_info (_("okay, we are the anonymous recipient.\n")); + if (!opt.quiet) + log_info (_("okay, we are the anonymous recipient.\n")); break; } else if (gpg_err_code (rc) == GPG_ERR_FULLY_CANCELED) |