scd,piv: Fix status report of KEYPAIRINFO.

* scd/app-piv.c (do_readkey): Use "-" for usage when not available.

--

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2022-05-26 11:57:31 +09:00
parent 052f58422d
commit 64c8786105
1 changed files with 1 additions and 1 deletions

View File

@ -1516,7 +1516,7 @@ do_readkey (app_t app, ctrl_t ctrl, const char *keyrefstr, unsigned int flags,
gpg_strerror (err));
goto leave;
}
usage = dobj->usage? dobj->usage : "";
usage = dobj->usage? dobj->usage : "-";
snprintf (idbuf, sizeof idbuf, "PIV.%s", dobj->keyref);
send_status_info (ctrl, "KEYPAIRINFO",