scd: Allow KEYGRIP as KEYIDSTR.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 23 Apr 2019 01:51:01 +0000 (10:51 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 23 Apr 2019 01:51:01 +0000 (10:51 +0900)
commite769609cd3c12d2e26955538399172016f78d2d4
tree1119f6df61c3cfb9f96b506076f3b0b8896e7cd5
parentb0f0791e4ade845b2a0e2a94dbda4f3bf1ceb039
scd: Allow KEYGRIP as KEYIDSTR.

* scd/app-openpgp.c (struct app_local_s): Add keygrip_str.
(store_keygrip): New.
(read_public_key): Call store_keygrip to hold keygrip.
(get_public_key): Likewise.
(send_keypair_info): Use stored keygrip_str.
(check_keyidstr): Allow use of KEYGRIP.
(do_check_pin): Allow use of KEYGRIP of signing slot.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
scd/app-openpgp.c