g10: Fix card keygen for decryption.
authorNIIBE Yutaka <gniibe@fsij.org>
Sun, 23 Oct 2016 22:52:40 +0000 (07:52 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Sun, 23 Oct 2016 22:52:40 +0000 (07:52 +0900)
* g10/keygen.c (do_generate_keypair): Fix arguments.

--

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

index 61e070c..ed529c7 100644 (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));
         }