g10: Fix card keygen for decryption.

* g10/keygen.c (do_generate_keypair): Fix arguments.

--

Reported-by: Grumpy
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2016-10-24 07:52:40 +09:00
parent 987bbb2276
commit acef095164
1 changed files with 2 additions and 2 deletions

View File

@ -4344,8 +4344,8 @@ do_generate_keypair (ctrl_t ctrl, struct para_data_s *para,
}
else
{
err = gen_card_key (2, 0, get_parameter_algo (para, pSUBKEYTYPE, NULL),
pub_root, &timestamp,
err = gen_card_key (2, get_parameter_algo (para, pSUBKEYTYPE, NULL),
0, pub_root, &timestamp,
get_parameter_u32 (para, pKEYEXPIRE));
}