diff options
Diffstat (limited to 'g10/keylist.c')
| -rw-r--r-- | g10/keylist.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index e45471e87..aabffe9bb 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -934,7 +934,10 @@ list_one (ctrl_t ctrl, strlist_t names, int secret, int mark_secret) * functions) or to have the search function return indicators for * found names. Yet another way is to use the keydb search * facilities directly. */ - rc = getkey_bynames (ctrl, &ctx, NULL, names, secret, &keyblock); + rc = getkey_bynames (ctrl, &ctx, NULL, names, + (GETKEY_ALLOW_ADSK + | (secret ? GETKEY_WANT_SECRET : 0)), + &keyblock); if (rc) { log_error ("error reading key: %s\n", gpg_strerror (rc)); |
