Skip to content

Commit

Permalink
pivy-tool: silence cardcap warning on uninitd yubikeys
Browse files Browse the repository at this point in the history
  • Loading branch information
arekinath committed Mar 19, 2024
1 parent 6e5120d commit 2d20b9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pivy-tool.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ cmd_list(void)
return (err);
assert_select(pk);
if ((err = piv_read_cardcap(pk, &cardcap))) {
warnfx(err, "failed to read cardcap");
if (!errf_caused_by(err, "NotFoundError"))
warnfx(err, "failed to read cardcap");
cardcap = NULL;
errf_free(err);
}
Expand Down

0 comments on commit 2d20b9e

Please sign in to comment.