mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
gpg: Display the key that is invalid, not the search description.
* g10/getkey.c (parse_def_secret_key): Display the key that is invalid, not the search description. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>
This commit is contained in:
parent
478ca6c75b
commit
7fe4be0416
12
g10/getkey.c
12
g10/getkey.c
@ -1225,22 +1225,22 @@ parse_def_secret_key (ctrl_t ctrl)
|
|||||||
if (pk->flags.revoked)
|
if (pk->flags.revoked)
|
||||||
{
|
{
|
||||||
if (DBG_LOOKUP)
|
if (DBG_LOOKUP)
|
||||||
log_debug ("not using %s as default key, %s\n",
|
log_debug (_("not using %s as default key, %s"),
|
||||||
t->d, "revoked");
|
keystr_from_pk (pk), "revoked");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (pk->has_expired)
|
if (pk->has_expired)
|
||||||
{
|
{
|
||||||
if (DBG_LOOKUP)
|
if (DBG_LOOKUP)
|
||||||
log_debug ("not using %s as default key, %s\n",
|
log_debug (_("not using %s as default key, %s"),
|
||||||
t->d, "expired");
|
keystr_from_pk (pk), "expired");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (pk_is_disabled (pk))
|
if (pk_is_disabled (pk))
|
||||||
{
|
{
|
||||||
if (DBG_LOOKUP)
|
if (DBG_LOOKUP)
|
||||||
log_debug ("not using %s as default key, %s\n",
|
log_debug (_("not using %s as default key, %s"),
|
||||||
t->d, "disabled");
|
keystr_from_pk (pk), "disabled");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user