agent,g10: Remove redundant SERIALNO request.
authorNIIBE Yutaka <gniibe@fsij.org>
Thu, 16 Mar 2017 05:32:51 +0000 (14:32 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Thu, 16 Mar 2017 05:32:51 +0000 (14:32 +0900)
commit8c8ce8711d9c938fcb982b0341e6b052742cb887
tree93a930b68c6e74a9903e993dcb821991032d707c
parenta98459d3f4ec3d196fb0adb0e90dadf40abc8c81
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 <gniibe@fsij.org>
agent/learncard.c
g10/call-agent.c
g10/call-agent.h