aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change all quotes in strings and comments to the new GNU standard.Werner Koch2012-06-051-3/+3
| | | | | | | | | | | | | | | | | | | The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
* Print warning for arguments not considered an option.Werner Koch2012-03-271-0/+10
| | | | | | | | | | | | | | | | | | GnuPG requires that options are given before other arguments. This can sometimes be confusing. We now print a warning if we found an argument looking alike a long option without being preceded by the stop option. This is bug#1343. * common/argparse.h (ARGPARSE_FLAG_STOP_SEEN): New. * common/argparse.c (arg_parse): Set new flag. * g10/gpg.c (main): Print the warning. * agent/gpg-agent.c (main): Ditto. * dirmngr/dirmngr.c (main): Ditto. * g13/g13.c (main): Ditto. * scd/scdaemon.c (main): Ditto. * sm/gpgsm.c (main): Ditto. * tools/gpg-connect-agent.c (main): Ditto. * tools/gpgconf.c (main): Ditto.
* common: Add a global variable to for the default error source.Werner Koch2012-02-061-0/+2
| | | | | | | | | | | | | | For the shared code parts it is cumbersome to pass an error sourse variable to each function. Its value is always a constant for a given binary and thus a global variable makes things a lot easier than the former macro stuff. * common/init.c (default_errsource): New global var. (init_common_subsystems): Rename to _init_common_subsystems. Set DEFAULT_ERRSOURCE. * common/init.h: Assert value of GPG_ERR_SOURCE_DEFAULT. (init_common_subsystems): New macro. * common/util.h (default_errsource): Add declaration. * kbx/keybox-defs.h: Add some GPG_ERR_SOURCE_DEFAULT trickery.
* Lock scdaemon to CCID if once found.Werner Koch2011-02-231-8/+38
| | | | | | | | This solves a problem where ccid was used, the card unplugged and then scdaemon tries to find a new (plugged in) reader and thus will eventually try PC/SC over and over again. Also added an explicit --kill command to gpgconf.
* 2010-11-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2010-11-171-3/+0
| | | | | | * gogconf.c: Revert accidental debug output commit.
* Enable i18n for W32.Werner Koch2010-10-201-0/+3
|
* Some tweaks to the agent startup.Werner Koch2010-10-141-2/+1
|
* Reworked the posix and w32 exechelpers.Werner Koch2010-08-201-8/+11
|
* Fix regression in logging.Werner Koch2010-08-181-37/+37
| | | | | | Add a registry key to enable catch-all remote debugging for W32. Replace more stdio stuff by estream.
* More chnages to use estream. Add a way to replace the standardWerner Koch2010-03-221-1/+1
| | | | | descriptors.
* Make bug reporting address easier changeable.Werner Koch2009-07-211-2/+2
|
* Help against closed standard descriptors.Werner Koch2009-06-081-0/+2
|
* Add --reload command to gpgconf.Werner Koch2009-03-031-2/+30
| | | | | | Fix a problem in exechelp.c Get ready for a release.
* Print more directories with gpgconf --list-dirs.Werner Koch2009-01-201-1/+40
|
* Minor fixes.Werner Koch2008-12-091-2/+1
|
* Extend --list-dirs to print the bindir.Werner Koch2008-09-301-0/+2
|
* doc/Marcus Brinkmann2008-05-261-1/+12
| | | | | | | | | | | | | | | | | | 2008-05-26 Marcus Brinkmann <[email protected]> * tools.texi (Invoking gpgconf): Document --list-dirs. tools/ 2008-05-26 Marcus Brinkmann <[email protected]> * gpgconf.c (enum cmd_and_opt_values): Add aListDirs. (opts): Add aListDirs option. (main): Handle aListDirs. * gpgconf.h (gc_percent_escape): New declaration. * gpgconf-comp.c (my_percent_escape): Make non-static and rename to ... (gc_percent_escape): ... this. Change all callers.
* doc/Marcus Brinkmann2008-05-191-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | 2008-05-20 Marcus Brinkmann <[email protected]> * tools.texi (Invoking gpgconf): Add --dry-run and --check-options. (Checking programs): Document --check-options. tools/ 2008-05-20 Marcus Brinkmann <[email protected]> * gpgconf.h (gc_component_check_programs): Rename to ... (gc_check_programs): ... this. (gc_component_change_options): Add argument OUT. (gc_component_check_options): New function. * gpgconf.c (enum cmd_and_opt_values): New option aCheckOptions. (opts): Add new option aCheckOptions (aka --check-options). (main): Handle new option aCheckOptions. * gpgconf-comp.c (gc_component_check_programs): Rename to ... (gc_check_programs): ... this. Refactor core of it to ... (gc_component_check_options): ... this new function. (gc_component_change_options): Add new argument OUT. Externally verify all changes. Implement option --dry-run.
* New option --list-config for gpgconf.Werner Koch2007-10-231-10/+42
|
* New command --check-programs for gpgconf.Werner Koch2007-08-291-1/+9
|
* Changed to GPLv3.Werner Koch2007-07-041-4/+2
| | | | | Removed intl/.
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-141-0/+3
| | | | | See the ChangeLogs for details.
* First steps towards supporting W32.Werner Koch2007-06-061-16/+0
| | | | | | | This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
* Support for a global gpgconf configuration file.Werner Koch2007-03-061-2/+32
|
* Updated FSF's address.Werner Koch2006-06-201-1/+2
|
* * gpgconf-comp.c (my_dgettext): Also switch codeset and directoryWerner Koch2004-10-011-3/+4
| | | | | | | for the other used domains (i.e. dirmngr). * gpgconf.c (main): Fixed translation markers.
* * gpgv.c (i18n_init): Always use LC_ALL.Werner Koch2004-09-301-5/+0
| | | | | | | | | | | | | | | | | | | * kbxutil.c (i18n_init): Always use LC_ALL. * gpgsm.c (i18n_init): Always use LC_ALL. * certdump.c (gpgsm_format_name): Factored code out to .. (gpgsm_format_name2): .. new. (gpgsm_print_name): Factored code out to .. (gpgsm_print_name2): .. new. (print_dn_part): New arg TRANSLATE. Changed all callers. (print_dn_parts): Ditto. (gpgsm_format_keydesc): Do not translate the SUBJECT; we require it to stay UTF-8 but we still want to filter out bad control characters. * gpgconf.c (i18n_init): Always use LC_ALL.
* * configure.ac: Require libgcrypt 1.1.94.Werner Koch2004-04-061-3/+3
| | | | | | | | | | Introduce PACKAGE_GT and set it to gnupg2. * gpg-agent.c (main): Use new libgcrypt thread library register scheme. * Makevars (DOMAIN): Init from PACKAGE_GT
* 2004-03-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-03-231-2/+0
| | | | | * gpgconf.c (main): Remove obsolete warning.
* 2004-02-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-02-231-3/+10
| | | | | | | * gpgconf.h (struct): Add member runtime. * gpgconf.c: Add new option oRuntime. (main): Same here.
* 2004-01-29 Marcus Brinkmann <[email protected]>Marcus Brinkmann2004-01-281-24/+50
| | | | | | | | | * gpgconf-list.c: File removed. * README.gpgconf: New file. * gpgconf-comp.c: New file. * Makefile.am (gpgconf_SOURCES): Remove gpgconf-list.c, add gpgconf-comp.c.
* * Manifest: New.Werner Koch2004-01-051-0/+175
* gpgconf.c, gpgconf.h, gpgconf-list.c: New. A skeleton for now. * no-libgcrypt.c: New. * Makefile.am: Add above.