mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: New option --forbid-gen-key.
* g10/gpg.c (oForbidGenKey, opts): New option. (mopt): New local struct (gen_key_forbidden): New. (main): Set and handle the option. -- In large system installation it is sometimes useful to make it a bit harder for users to generate their own keys. An example is a policy to not use on-disk keys.
This commit is contained in:
parent
40d2c93165
commit
985fb25c46
2 changed files with 44 additions and 9 deletions
|
@ -3515,6 +3515,12 @@ This option modifies the behaviour of the commands
|
|||
sub-commands of @option{--edit-key} by forcing the creation of a key
|
||||
signature, even if one already exists.
|
||||
|
||||
@item --forbid-gen-key
|
||||
@opindex forbid-gen-key
|
||||
This option is intended for use in the global config file to disallow
|
||||
the use of generate key commands. Those commands will then fail with
|
||||
the error code for Not Enabled.
|
||||
|
||||
@item --allow-secret-key-import
|
||||
@opindex allow-secret-key-import
|
||||
This is an obsolete option and is not used anywhere.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue