First step for multiple device support, using the keygrip.
* src/agent.h (struct keyinfo): New. (scute_agent_free_keyinfo, scute_agent_keyinfo_list): New. (scute_agent_learn, scute_agent_check_status): Add GRIP argument. (scute_find_kinfo): Remove. (scute_agent_get_cert): Use GRIP, instead of CERTREF. * src/agent.c (struct keyinfo_parm, keyinfo_list_cb): New. (scute_agent_free_keyinfo, scute_agent_keyinfo_list): New. (scute_agent_release_card_info): Remove ->KINFO support. (scute_find_kinfo, create_kinfo): Remove. (learn_status_cb): Remove ->KINFO support. (scute_agent_learn, scute_agent_check_status): Add GRIP argument. * src/cert-gpgsm.c (keylist_cb_line): Don't touch cert->grip field. * src/cert-object.c (scute_attr_prv): Use GRIP, instead of KINFO. * src/cert.h (struct cert): Remove GRIP field. (scute_attr_prv): Use GRIP, instead of KINFO. * src/gpgsm.c (struct search_cb_parm): Use GRIP, instead of KINFO. (search_cb): Likewise for scute_attr_prv. Use CTX->GRIP, instead of ->KINFO->GRIP. (scute_gpgsm_get_cert): Use GRIP, instead of KINFO. * src/gpgsm.h (scute_gpgsm_get_cert): Use GRIP, instead of KINFO. * src/slots.c (struct slot): Add GRIP field. (scute_slots_initialize): Allocate slots by available keys. (slot_init): Don't use KINFO, but GRIP. (slots_update_slot): Follow the change of scute_agent_check_status. (slots_detect_slot): Follow the change of scute_agent_learn.
- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>