g10: Don't ask keysize for for non-RSA card.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 21 Oct 2016 05:15:05 +0000 (14:15 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 21 Oct 2016 05:15:05 +0000 (14:15 +0900)
commitdafce6f698bec6e9d4c0125b90754d0687294e86
tree3d4a054ac50ec4db1bf970ef8cf11d39ad11c587
parent161cb22f13bcd8cbdb08558d9926b2168a8297ac
g10: Don't ask keysize for for non-RSA card.

* g10/card-util.c (card_status): Bug fix for keyno.
(ask_card_rsa_keysize, do_change_rsa_keysize): Rename.
(generate_card_keys): Only ask keysize when RSA.
(card_generate_subkey): Likewise.

--

Co-authored-by: Arnaud Fontaine <arnaud.fontaine@ssi.gouv.fr>
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/card-util.c