aboutsummaryrefslogtreecommitdiffstats
path: root/g10/card-util.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2011-11-06 16:01:31 +0000
committerWerner Koch <[email protected]>2011-11-06 16:01:31 +0000
commit958f29d2251a96d09439e591ea3523133930e5e9 (patch)
tree21b939412dc91322f35b85524df4804049fa1141 /g10/card-util.c
parenttypo fixes (diff)
downloadgnupg-958f29d2251a96d09439e591ea3523133930e5e9.tar.gz
gnupg-958f29d2251a96d09439e591ea3523133930e5e9.zip
Allow creating subkeys using an existing key
This works by specifying the keygrip instead of an algorithm (section number 13) and requires that the option -expert has been used. It will be easy to extend this to the primary key.
Diffstat (limited to 'g10/card-util.c')
-rw-r--r--g10/card-util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/g10/card-util.c b/g10/card-util.c
index 9c124bbfc..14268dfeb 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -1356,7 +1356,7 @@ do_change_keysize (int keyno, unsigned int nbits)
static void
-generate_card_keys (void)
+generate_card_keys (ctrl_t ctrl)
{
struct agent_card_info_s info;
int forced_chv1;
@@ -1435,7 +1435,7 @@ generate_card_keys (void)
the serialnumber and thus it won't harm. */
}
- generate_keypair (NULL, info.serialno, want_backup);
+ generate_keypair (ctrl, NULL, info.serialno, want_backup);
leave:
agent_release_card_info (&info);
@@ -1986,7 +1986,7 @@ card_edit (ctrl_t ctrl, strlist_t commands)
break;
case cmdGENERATE:
- generate_card_keys ();
+ generate_card_keys (ctrl);
break;
case cmdPASSWD: