mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
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:
parent
052f58422d
commit
64c8786105
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user