mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Support --passphrase with --quick-gen-key.
* g10/keygen.c: Include shareddefs.h. (quick_generate_keypair): Support static passphrase. (get_parameter_passphrase): New. (do_generate_keypair): Use it. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
aa99ebde77
commit
4d7c9b0e9a
3 changed files with 41 additions and 2 deletions
|
@ -571,6 +571,14 @@ If invoked directly on the console without any special options an
|
|||
answer to a ``Continue?'' style confirmation prompt is required. In
|
||||
case the user id already exists in the key ring a second prompt to
|
||||
force the creation of the key will show up.
|
||||
|
||||
If this command is used with @option{--batch},
|
||||
@option{--pinentry-mode} has been set to @code{loopback}, and one of
|
||||
the passphrase options (@option{--passphrase},
|
||||
@option{--passphrase-fd}, or @option{passphrase-file}) is used, the
|
||||
supplied passphrase is used for the new key and the agent does not ask
|
||||
for it. To create a key without any protection @code{--passphrase ''}
|
||||
may be used.
|
||||
@end ifset
|
||||
|
||||
@item --gen-key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue