mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
agent: No cards is not an error.
* agent/command-ssh.c (card_key_list): Care the case of no cards. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
3f4f64b6ac
commit
dea4b3c742
@ -2387,9 +2387,15 @@ card_key_list (ctrl_t ctrl, char **r_serialno, strlist_t *result)
|
|||||||
{
|
{
|
||||||
gpg_error_t err;
|
gpg_error_t err;
|
||||||
|
|
||||||
|
*r_serialno = NULL;
|
||||||
|
*result = NULL;
|
||||||
|
|
||||||
err = agent_card_serialno (ctrl, r_serialno, NULL);
|
err = agent_card_serialno (ctrl, r_serialno, NULL);
|
||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
|
if (gpg_err_code (err) == GPG_ERR_ENODEV)
|
||||||
|
return 0; /* Nothing available. */
|
||||||
|
|
||||||
if (opt.verbose)
|
if (opt.verbose)
|
||||||
log_info (_("error getting serial number of card: %s\n"),
|
log_info (_("error getting serial number of card: %s\n"),
|
||||||
gpg_strerror (err));
|
gpg_strerror (err));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user