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 (DBG_LOOKUP)
|
||||
log_debug ("not using %s as default key, %s\n",
|
||||
t->d, "revoked");
|
||||
log_debug (_("not using %s as default key, %s"),
|
||||
keystr_from_pk (pk), "revoked");
|
||||
continue;
|
||||
}
|
||||
if (pk->has_expired)
|
||||
{
|
||||
if (DBG_LOOKUP)
|
||||
log_debug ("not using %s as default key, %s\n",
|
||||
t->d, "expired");
|
||||
log_debug (_("not using %s as default key, %s"),
|
||||
keystr_from_pk (pk), "expired");
|
||||
continue;
|
||||
}
|
||||
if (pk_is_disabled (pk))
|
||||
{
|
||||
if (DBG_LOOKUP)
|
||||
log_debug ("not using %s as default key, %s\n",
|
||||
t->d, "disabled");
|
||||
log_debug (_("not using %s as default key, %s"),
|
||||
keystr_from_pk (pk), "disabled");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user