mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
gpg: Reword warning about decryption w/o using a non-encrypt key.
--
This commit is contained in:
parent
109d16e8f6
commit
3e730c55e7
@ -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]))
|
|| (k->keyid[0] == keyid[0] && k->keyid[1] == keyid[1]))
|
||||||
{
|
{
|
||||||
if (!opt.quiet && !(sk->pubkey_usage & PUBKEY_USAGE_ENC))
|
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
|
else
|
||||||
continue;
|
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"));
|
log_info (_("okay, we are the anonymous recipient.\n"));
|
||||||
if (!(sk->pubkey_usage & PUBKEY_USAGE_ENC))
|
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;
|
search_for_secret_keys = 0;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user