1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

scd:piv: Add the do_with_keygrip feature.

* scd/app-piv.c (do_with_keygrip): New.
(app_select_piv): Register function.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2019-06-17 18:04:36 +02:00
parent c594dcfc93
commit e900bf2973
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
2 changed files with 95 additions and 0 deletions

View file

@ -1874,6 +1874,10 @@ cmd_keyinfo (assuan_context_t ctx, char *line)
return 0;
}
/* Send a keyinfo string as used by the KEYGRIP_ACTION_SEND_DATA. If
* DATA is true the string is emitted as a data line, else as a status
* line. */
void
send_keyinfo (ctrl_t ctrl, int data, const char *keygrip_str,
const char *serialno, const char *idstr)
@ -1895,6 +1899,8 @@ send_keyinfo (ctrl_t ctrl, int data, const char *keygrip_str,
xfree (string);
return;
}
/* Tell the assuan library about our commands */
static int