diff options
author | NIIBE Yutaka <[email protected]> | 2017-03-16 05:32:51 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2017-03-16 05:32:51 +0000 |
commit | 8c8ce8711d9c938fcb982b0341e6b052742cb887 (patch) | |
tree | 93a930b68c6e74a9903e993dcb821991032d707c /g10/call-agent.h | |
parent | tests: Fix using tools from the build directory. (diff) | |
download | gnupg-8c8ce8711d9c938fcb982b0341e6b052742cb887.tar.gz gnupg-8c8ce8711d9c938fcb982b0341e6b052742cb887.zip |
agent,g10: Remove redundant SERIALNO request.
* agent/learncard.c (agent_handle_learn): Don't call
agent_card_serialno. Get the serialno in status response.
* g10/call-agent.c (agent_scd_learn): Don't request "SCD SERIALNO".
(agent_scd_serialno): New.
(card_cardlist_cb, agent_scd_cardlist): New.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'g10/call-agent.h')
-rw-r--r-- | g10/call-agent.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/g10/call-agent.h b/g10/call-agent.h index e4fea5730..a04fc734c 100644 --- a/g10/call-agent.h +++ b/g10/call-agent.h @@ -76,6 +76,12 @@ void agent_release_card_info (struct agent_card_info_s *info); /* Return card info. */ int agent_scd_learn (struct agent_card_info_s *info, int force); +/* Return list of cards. */ +int agent_scd_cardlist (strlist_t *result); + +/* Return the serial number, possibly select by DEMAND. */ +int agent_scd_serialno (char **r_serialno, const char *demand); + /* Send an APDU to the card. */ gpg_error_t agent_scd_apdu (const char *hexapdu, unsigned int *r_sw); |