aboutsummaryrefslogtreecommitdiffstats
path: root/tools (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-02-22Remove some unused variables.Werner Koch1-6/+0
* tools/gpgconf-comp.c (gc_process_gpgconf_conf): Remove unused used_components. * agent/command-ssh.c (ssh_signature_encoder_ecdsa): Mark unused arg. * g13/g13.c (main): Comment variable of yet unimplemented options.
2013-02-08scd: Rename 'keypad' to 'pinpad'.NIIBE Yutaka1-2/+2
* NEWS: Mention scd changes. * agent/divert-scd.c (getpin_cb): Change message. * agent/call-scd.c (inq_needpin): Change the protocol to POPUPPINPADPROMPT and DISMISSPINPADPROMPT. * scd/command.c (pin_cb): Likewise. * scd/apdu.c (struct reader_table_s): Rename member functions. (check_pcsc_pinpad, pcsc_pinpad_verify, pcsc_pinpad_modify, check_ccid_pinpad, ccid_pinpad_operation, apdu_check_pinpad apdu_pinpad_verify, apdu_pinpad_modify): Rename. * scd/apdu.h (SW_HOST_NO_PINPAD, apdu_check_pinpad) (apdu_pinpad_verify, apdu_pinpad_modify): Rename. * scd/iso7816.h (iso7816_check_pinpad): Rename. * scd/iso7816.c (map_sw): Use SW_HOST_NO_PINPAD. (iso7816_check_pinpad): Rename. (iso7816_verify_kp, iso7816_change_reference_data_kp): Follow the change. * scd/ccid-driver.h (CCID_DRIVER_ERR_NO_PINPAD): Rename. * scd/ccid-driver.c (ccid_transceive_secure): Use it. * scd/app-dinsig.c (verify_pin): Follow the change. * scd/app-nks.c (verify_pin): Follow the change. * scd/app-openpgp.c (check_pinpad_request): Rename. (parse_login_data, verify_a_chv, verify_chv3, do_change_pin): Follow the change. * scd/scdaemon.c (oDisablePinpad, oEnablePinpadVarlen): Rename. * scd/scdaemon.h (opt): Rename to disable_pinpad, enable_pinpad_varlen. * tools/gpgconf-comp.c (gc_options_scdaemon): Rename to disable-pinpad.
2012-08-24Fix left over use of jnlib on some platformsWerner Koch2-2/+2
* tools/watchgnupg.c: Take mischelp.h from common/ and not jnlib/. -- Also fixed in some comments.
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch15-132/+132
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 Koch3-0/+32
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 Koch5-25/+31
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.
2012-01-27gpg-connect-tool: Take the string "true" as a true condition.Werner Koch1-1/+8
* tools/gpg-connect-agent.c (main): Handle strings "true" and "yes" in conditions as expected.
2012-01-25Port to npth.Marcus Brinkmann1-2/+2
* configure.ac: Don't check for PTH but for NPTH. (AH_BOTTOM): Remove PTH_SYSCALL_SOFT. (have_pth): Rename to ... (have_npth): ... this. (USE_GNU_NPTH): Rename to ... (USE_GNU_PTH): ... this. * m4/npth.m4: New file. * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c, agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c, agent/trustlist.c, common/Makefile.am, common/estream.c, common/exechelp-posix.c, common/exechelp-w32.c, common/exechelp-w32ce.c, common/http.c, common/init.c, common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c, dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c, dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am, g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am, scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c, scd/scdaemon.c, tools/Makefile.am: Port to npth.
2011-12-14agent: Pass comment lines from scd verbatim thru gpg-agent.Werner Koch1-71/+85
* agent/call-scd.c (pass_status_thru): Pass comment lines verbatim. * tools/gpg-connect-agent.c (help_cmd_p): New. (main): Treat an "SCD HELP" the same as "HELP".
2011-12-01Generate the ChangeLog from commit logs.Werner Koch2-2/+13
* scripts/gitlog-to-changelog: New script. Taken from gnulib. * scripts/git-log-fix: New file. * scripts/git-log-footer: New file. * doc/HACKING: Describe the ChangeLog policy * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. Rename all ChangeLog files to ChangeLog-2011.
2011-08-26Mark component descriptions for translation.Werner Koch2-6/+11
2011-03-08Require libgcrypt 1.5Werner Koch2-0/+7
Without Libgcrypt 1.5 is was not possible to use ECC keys. ECC is major new feature and thus it does not make sense to allow building with an older Libgcrypt without supporting ECC. Also fixed a few missing prototypes.
2011-03-03Fix faulty gcc warningsWerner Koch1-0/+1
2011-02-23Lock scdaemon to CCID if once found.Werner Koch4-95/+167
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.
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch11-85/+82
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2011-02-03Update copyright yearWerner Koch2-38/+42
Nuked some trailing spaces.
2010-12-14Tweaks for gpgconf.Werner Koch2-3/+26
Fixed dirmngr bug 1010.
2010-12-02s/AES/AES128/ in diagnostics and --list-configWerner Koch2-1/+12
2010-11-23Change stack size for Wince.Werner Koch2-0/+5
Allow for a longer agent atartup under wince. Print gpg output via estream.
2010-11-172010-11-17 Marcus Brinkmann <[email protected]>Marcus Brinkmann2-3/+4
* gogconf.c: Revert accidental debug output commit.
2010-10-27Honor TMPDIR.Werner Koch2-2/+12
2010-10-20Enable i18n for W32.Werner Koch1-0/+3
2010-10-18Fix a signing problem with the cardWerner Koch1-1/+1
2010-10-14All tests work are again workingWerner Koch2-1/+7
2010-10-14Some tweaks to the agent startup.Werner Koch4-147/+21
2010-10-06Import fixes.Werner Koch2-5/+20
new otion for watchgnupg
2010-10-05Don't set SSH_AGENTPID_INFO.Werner Koch2-87/+175
Doc fixes. Allow TCP and local sockets in watchgnupg.
2010-08-26.Werner Koch2-1/+4
2010-08-25Changed option names.Werner Koch4-9/+36
Add O_BINARY for stdin and stdout.
2010-08-23gpgconf does now work for Wince.Werner Koch3-12/+35
2010-08-20Reworked the posix and w32 exechelpers.Werner Koch3-61/+47
2010-08-19Add component pinentry as an easy way to figure out the defaultWerner Koch2-5/+44
pinentry. Also allows to test whether pinentry is installed.
2010-08-18Fix regression in logging.Werner Koch5-100/+111
Add a registry key to enable catch-all remote debugging for W32. Replace more stdio stuff by estream.
2010-08-13Minor Makefile fixes to let it build on all platformsWerner Koch2-6/+12
2010-08-11Support "-" for --output.Werner Koch2-1/+12
2010-08-09Support logging via TCPWerner Koch2-21/+57
2010-08-09Add dummy options --cms and --openpgp.Werner Koch1-1/+7
2010-08-09Add option --nullWerner Koch3-10/+96
2010-07-16Some work on porting dirmngr (unfinished)Werner Koch7-54/+325
Ported gpgtar to W32.
2010-06-24Fix a regression from 2010-06-09.Werner Koch2-4/+10
2010-06-09Merged Dirmngr with GnuPG.Werner Koch1-4/+8
A few code changes to support dirmngr.
2010-06-07Add unfinished gpgtar.Werner Koch7-10/+1744
Collected changes and ports of bug fixes from stable.
2010-04-22remove gpgtarWerner Koch1-9/+9
2010-04-21More changes on the way to remove secring.gpg.Werner Koch1-1/+10
2010-04-20common/Marcus Brinkmann2-2/+13
2010-04-20 Marcus Brinkmann <[email protected]> * logging.c (do_log_ignore_arg): New helper function. (log_string): Use it to remove ugly volatile hack that causes gcc warning. (log_flush): Likewise. * sysutils.c (gnupg_unsetenv) [!HAVE_W32CE_SYSTEM]: Return something. (gnupg_setenv) [!HAVE_W32CE_SYSTEM]: Likewise. * pka.c (get_pka_info): Solve strict aliasing rule violation. * t-exechelp.c (test_close_all_fds): Use dummy variables to silence gcc warning. kbx/ 2010-04-20 Marcus Brinkmann <[email protected]> * keybox-update.c [!HAVE_DOSISH_SYSTEM]: Include ../common/sysutils.h even then to silence gcc warning about missing declaration of gnupg_remove. tools/ 2010-04-20 Marcus Brinkmann <[email protected]> * gpgconf-comp.c (option_check_validity): Use dummy variables to silence gcc warning.
2010-04-14Fixed dependencies and a syntax errorWerner Koch2-0/+5
2010-04-14./autogen.sh --build-w32ce does now succeed.Werner Koch3-7/+15
2010-04-14Whole lot of changes to support CE.Werner Koch1-1/+17
2010-03-29Minor cleanupsWerner Koch4-22/+39
2010-03-22More chnages to use estream. Add a way to replace the standardWerner Koch4-4/+4
descriptors.