diff options
author | Werner Koch <wk@gnupg.org> | 2007-10-23 20:13:27 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2007-10-23 20:13:27 +0200 |
commit | fca02368da72f42f84e328ecbef04c40b2bfa4fb (patch) | |
tree | 5e79b188e8c6860497169c8a894405b0bc0c4930 /doc | |
parent | Fixed wrong entry in the gpg-agent table. (diff) | |
download | gnupg2-fca02368da72f42f84e328ecbef04c40b2bfa4fb.tar.xz gnupg2-fca02368da72f42f84e328ecbef04c40b2bfa4fb.zip |
New option --list-config for gpgconf.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ChangeLog | 4 | ||||
-rw-r--r-- | doc/examples/gpgconf.conf | 8 | ||||
-rw-r--r-- | doc/tools.texi | 77 |
3 files changed, 78 insertions, 11 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index 096e8eb92..6d3481167 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2007-10-23 Werner Koch <wk@g10code.com> + + * tools.texi (Listing global options): New. + 2007-10-19 Werner Koch <wk@g10code.com> * tools.texi (Controlling gpg-connect-agent): Updated. diff --git a/doc/examples/gpgconf.conf b/doc/examples/gpgconf.conf index 0f4a021eb..ec8685acb 100644 --- a/doc/examples/gpgconf.conf +++ b/doc/examples/gpgconf.conf @@ -9,8 +9,8 @@ # white space character, are ignored. The line is separated by white # space into fields. The first field is used to match the user or # group and must start at the first column, the file is processes -# sequential until a matching rle is found. A rule may contain -# several lines, continuation lines are indicated by a indenting them. +# sequential until a matching rule is found. A rule may contain +# several lines; continuation lines are indicated by a indenting them. # # Syntax of a line: # <key>|WS <component> <option> ["["<flag>"]"] [<value>] @@ -38,8 +38,8 @@ # gpg-agent min-passphrase-nonalpha [no-change] 1 # gpg-agent max-passphrase-days [no-change] 700 # gpg-agent enable-passphrase-history [no-change] -# gpg-agent enforce-passphrase-policy [default] -# gpg-agent enforce-passphrase-policy [no-change] +# gpg-agent enforce-passphrase-constraints [default] +# gpg-agent enforce-passphrase-constraints [no-change] # gpg-agent max-cache-ttl [no-change] 10800 # gpg-agent max-cache-ttl-ssh [no-change] 10800 # gpg-agent allow-mark-trusted [default] diff --git a/doc/tools.texi b/doc/tools.texi index d240aca35..c65de93c7 100644 --- a/doc/tools.texi +++ b/doc/tools.texi @@ -197,13 +197,14 @@ program that uses @command{gpgconf} in this way will be called GUI throughout this section. @menu -* Invoking gpgconf:: List of all commands and options. -* Format conventions:: Formatting conventions relevant for all commands. -* Listing components:: List all gpgconf components. -* Checking programs:: Check all programs know to gpgconf. -* Listing options:: List all options of a component. -* Changing options:: Changing options of a component. -* Files used by gpgconf:: What files are used by gpgconf. +* Invoking gpgconf:: List of all commands and options. +* Format conventions:: Formatting conventions relevant for all commands. +* Listing components:: List all gpgconf components. +* Checking programs:: Check all programs know to gpgconf. +* Listing options:: List all options of a component. +* Changing options:: Changing options of a component. +* Listing global options:: List all global options. +* Files used by gpgconf:: What files are used by gpgconf. @end menu @manpause @@ -232,6 +233,10 @@ Change the options of the component @var{component}. Update all configuration files with values taken from the global configuration file (usually @file{/etc/gnupg/gpgconf.conf}). +@item --list-config [@var{filename}] +List the global configuration file in a colon separated format. If +@var{filename} is given, check that file instead. + @item --check-config [@var{filename}] Run a syntax check on the global configuration file. If @var{filename} is given, check that file instead. @@ -767,6 +772,64 @@ $ echo 'force:16:' | gpgconf --change-options dirmngr The @code{--runtime} option can influence when the changes take effect. + +@node Listing global options +@subsection Listing global options + +Sometimes it is useful for applications to look at the global options +file @file{gpgconf.conf}. +The colon separated listing format is record oriented and uses the first +field to identify the record type: + +@table @code +@item k +This describes a key record to start the definition of a new ruleset for +a user/group. The format of a key record is: + + @code{k:@var{user}:@var{group}:} + +@table @var +@item user +This is the user field of the key. It is percent escaped. See the +definition of the gpgconf.conf format for details. + +@item group +This is the group field of the key. It is percent escaped. +@end table + +@item r +This describes a rule record. All rule records up to the next key record +make up a rule set for that key. The format of a rule record is: + + @code{r:::@var{component}:@var{option}:@var{flags}:@var{value}:} + +@table @var +@item component +This is the component part of a rule. It is a plain string. + +@item option +This is the option part of a rule. It is a plain string. + +@item flag +This is the flags part of a rule. There may be only one flag per rule +but by using the same component and option, several flags may be +assigned to an option. It is a plain string. + +@item value +This is the optional value for the option. It is a percent escaped +string with a single quotation mark to indicate a string. The quotation +mark is only required to distinguish between no value specified and an +empty string. +@end table + +@end table + +@noindent +Unknown record typs should be ignored. Note that there is intentionally +no feature to change the global option file through @command{gpgconf}. + + + @mansect files @node Files used by gpgconf @subsection Files used by gpgconf |