aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-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.
2012-03-27Print warning for arguments not considered an option.Werner Koch1-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.
2012-02-06common: Add a global variable to for the default error source.Werner Koch1-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.
2011-02-23Lock scdaemon to CCID if once found.Werner Koch1-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-172010-11-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-3/+0
* gogconf.c: Revert accidental debug output commit.
2010-10-20Enable i18n for W32.Werner Koch1-0/+3
2010-10-14Some tweaks to the agent startup.Werner Koch1-2/+1
2010-08-20Reworked the posix and w32 exechelpers.Werner Koch1-8/+11
2010-08-18Fix regression in logging.Werner Koch1-37/+37
Add a registry key to enable catch-all remote debugging for W32. Replace more stdio stuff by estream.
2010-03-22More chnages to use estream. Add a way to replace the standardWerner Koch1-1/+1
descriptors.
2009-07-21Make bug reporting address easier changeable.Werner Koch1-2/+2
2009-06-08Help against closed standard descriptors.Werner Koch1-0/+2
2009-03-03Add --reload command to gpgconf.Werner Koch1-2/+30
Fix a problem in exechelp.c Get ready for a release.
2009-01-20Print more directories with gpgconf --list-dirs.Werner Koch1-1/+40
2008-12-09Minor fixes.Werner Koch1-2/+1
2008-09-30Extend --list-dirs to print the bindir.Werner Koch1-0/+2
2008-05-26doc/Marcus Brinkmann1-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.
2008-05-19doc/Marcus Brinkmann1-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.
2007-10-23New option --list-config for gpgconf.Werner Koch1-10/+42
2007-08-29New command --check-programs for gpgconf.Werner Koch1-1/+9
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-0/+3
See the ChangeLogs for details.
2007-06-06First steps towards supporting W32.Werner Koch1-16/+0
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-03-06Support for a global gpgconf configuration file.Werner Koch1-2/+32
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2004-10-01* gpgconf-comp.c (my_dgettext): Also switch codeset and directoryWerner Koch1-3/+4
for the other used domains (i.e. dirmngr). * gpgconf.c (main): Fixed translation markers.
2004-09-30* gpgv.c (i18n_init): Always use LC_ALL.Werner Koch1-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.
2004-04-06* configure.ac: Require libgcrypt 1.1.94.Werner Koch1-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-232004-03-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-2/+0
* gpgconf.c (main): Remove obsolete warning.
2004-02-232004-02-23 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-3/+10
* gpgconf.h (struct): Add member runtime. * gpgconf.c: Add new option oRuntime. (main): Same here.
2004-01-282004-01-29 Marcus Brinkmann <[email protected]>Marcus Brinkmann1-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.
2004-01-05* Manifest: New.Werner Koch1-0/+175
* gpgconf.c, gpgconf.h, gpgconf-list.c: New. A skeleton for now. * no-libgcrypt.c: New. * Makefile.am: Add above.