mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
32118628a0
commit
958f29d225
8 changed files with 242 additions and 59 deletions
|
@ -3709,12 +3709,12 @@ main (int argc, char **argv)
|
|||
if( opt.batch ) {
|
||||
if( argc > 1 )
|
||||
wrong_args("--gen-key [parameterfile]");
|
||||
generate_keypair (argc? *argv : NULL, NULL, 0);
|
||||
generate_keypair (ctrl, argc? *argv : NULL, NULL, 0);
|
||||
}
|
||||
else {
|
||||
if( argc )
|
||||
wrong_args("--gen-key");
|
||||
generate_keypair (NULL, NULL, 0);
|
||||
generate_keypair (ctrl, NULL, NULL, 0);
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue