gpg: Reword warning about decryption w/o using a non-encrypt key.

--
This commit is contained in:
Werner Koch 2020-07-14 11:01:45 +02:00
parent 109d16e8f6
commit 3e730c55e7
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 3 additions and 2 deletions

View File

@ -143,7 +143,7 @@ get_session_key (ctrl_t ctrl, struct pubkey_enc_list *list, DEK *dek)
|| (k->keyid[0] == keyid[0] && k->keyid[1] == keyid[1]))
{
if (!opt.quiet && !(sk->pubkey_usage & PUBKEY_USAGE_ENC))
log_info (_("using the key with no 'encrypt' usage.\n"));
log_info (_("used key is not marked for encryption use.\n"));
}
else
continue;
@ -156,7 +156,8 @@ get_session_key (ctrl_t ctrl, struct pubkey_enc_list *list, DEK *dek)
{
log_info (_("okay, we are the anonymous recipient.\n"));
if (!(sk->pubkey_usage & PUBKEY_USAGE_ENC))
log_info (_("using the key with no 'encrypt' usage.\n"));
log_info (_("used key is not marked for encryption use.\n")
);
}
search_for_secret_keys = 0;
break;