g10: More card key generation change.
authorNIIBE Yutaka <gniibe@fsij.org>
Fri, 21 Oct 2016 23:45:35 +0000 (08:45 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Fri, 21 Oct 2016 23:45:35 +0000 (08:45 +0900)
commit987bbb2276aeb6bee2793e8406e223717b605009
tree5a03fe2339a40d42bc27c564b839472d187090f2
parentf7e50634be71ce3028726f23edf14454109a04a8
g10: More card key generation change.

* g10/keygen.c (gen_card_key): Add back ALGO as the second argument.
Don't get ALGO by KEY-ATTR by this function.  It's caller to provide
ALGO.  Don't do that by both of caller and callee.
(generate_keypair): Only put paramerters needed.  Use parameters
for ALGO to call gen_card_key.
(generate_card_subkeypair): Get ALGO and call gen_card_key with it.

--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
g10/keygen.c