scd: Force key attribute change for writekey.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 7 Sep 2015 04:49:47 +0000 (13:49 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 7 Sep 2015 04:49:47 +0000 (13:49 +0900)
commitf10b427d0e2be333776fee2df8150145da36e587
tree57996eb3b31ed2b32ac577c8fd21d2646431357b
parentfd689e85423d0d80d725f0315c52d94f0e9766f8
scd: Force key attribute change for writekey.

* scd/app-openpgp.c (change_rsa_keyattr): New.
(change_keyattr_from_string): Use change_rsa_keyattr.
(rsa_writekey): Call change_rsa_keyattr when different size.
(ecc_writekey): Try to change key attribute.
scd/app-openpgp.c