1. 05 Jun, 2012 1 commit
    • Werner Koch's avatar
      Change all quotes in strings and comments to the new GNU standard. · 096e7457
      Werner Koch authored
      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.
  2. 24 May, 2012 2 commits
  3. 11 May, 2012 1 commit
    • Werner Koch's avatar
      Switch to the new automagic beta numbering scheme. · 68777b40
      Werner Koch authored
      * configure.ac: Add all the require m4 magic.
      This also removes the hack to allow custom version numbers which are
      not considered a development version.  A custom version number can be
      done anyway by simply setting the version to it and tag the release
      with it.
  4. 08 May, 2012 4 commits
    • Werner Koch's avatar
      Add tweaks for the not anymore patented IDEA algorithm. · b4d9f8db
      Werner Koch authored
      * g10/keygen.c (keygen_set_std_prefs): Include IDEA only in PGP2
      compatibility mode.
      * g10/misc.c (idea_cipher_warn): Remove.  Also remove all callers.
      * common/status.h (STATUS_RSA_OR_IDEA): Remove.  Do not emit this
      status anymore.
      To keep the number of actually used algorithms low, we want to support
      IDEA only in a basically read-only way (unless --pgp2 is used during
      key generation).  It does not make sense to suggest the use of this
      old 64 bit blocksize algorithm.  However, there is old data available
      where it might be helpful to have IDEA available.
    • Werner Koch's avatar
      Always require libksba. · 14cfd45d
      Werner Koch authored
      The extra test for libksba and possible trouble building GnuPG without
      ksba is not anymore worth the trouble.
    • Werner Koch's avatar
      po: Update de.po. · 59b77f9e
      Werner Koch authored
      * po/de.po: Update.
    • Werner Koch's avatar
      common: Remove generated files only during maintainer-clean. · d800fa5c
      Werner Koch authored
      * common/Makefile.am (CLEANFILES): Rename to MAINTAINERCLEANFILES.
      In general this is not required because automake does this for files
      in BUILT_SOURCES anyway.  However, having them in CLEANFILES is wrong.
      This is bug#1398.
  5. 30 Apr, 2012 1 commit
    • Werner Koch's avatar
      agent: Fix deadlock in trustlist due to the switch to npth. · 0f02fba1
      Werner Koch authored
      * agent/trustlist.c (clear_trusttable): New.
      (agent_reload_trustlist): Use new function.
      (read_trustfiles): Require to be called with lock held.
      (agent_istrusted): Factor all code out to ...
      (istrusted_internal): new.  Add ALREADY_LOCKED arg.  Make sure the
      table islocked.  Do not print TRUSTLISTFLAG stati if called internally.
      (agent_marktrusted): Replace calls to agent_reload_trustlist by
      explicit code.
      In contrast to pth, npth does not use recursive mutexes by default.
      However, the code in trustlist.c assumed recursive locks and thus we
      had to rework it.
  6. 26 Apr, 2012 3 commits
  7. 20 Apr, 2012 1 commit
    • Werner Koch's avatar
      Change license for some files in common to LGPLv3+/GPLv2+. · 37df3d5f
      Werner Koch authored
      Having the LGPL on the common GnuPG code helps to share code
      between GnuPG and related projects (like GPGME and Libassuan).  This
      is good for interoperability and to reduces bugs.
      * common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
      * common/b64enc.c, common/convert.c, common/dns-cert.c
      * common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
      * common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
      * common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
      * common/helpfile.c, common/homedir.c, common/http.c, common/http.h
      * common/i18n.c, common/init.c, common/init.h, common/iobuf.c
      * common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
      * common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
      * common/percent.c, common/pka.c, common/pka.h, common/session-env.c
      * common/session-env.h, common/sexp-parse.h, common/sexputil.c
      * common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
      * common/ssh-utils.h, common/sysutils.c, common/sysutils.h
      * common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
      * common/userids.c, common/userids.h, common/xasprintf.c: Change
      license to LGPLv3+/GPLv2+/
  8. 17 Apr, 2012 1 commit
  9. 10 Apr, 2012 1 commit
    • Ben Kibbey's avatar
      Fix killing PID -1. · bee0ac28
      Ben Kibbey authored
      When the KILLSCD command had been sent a race condition would occur
      causing PID -1 getting killed, which on Linux seems to terminate all
      applications for the current user.
  10. 05 Apr, 2012 1 commit
    • Werner Koch's avatar
      Do not mix test result with progress lines. · f1e1387b
      Werner Koch authored
      This makes parsing of the results easier.  Fixes bug#1400.
      * tests/openpgp/defs.inc (progress_cancel, progress_end)
      (progress_new): New.
      * tests/openpgp/conventional-mdc.test: Use progress functions
      * tests/openpgp/conventional.test: Ditto.
      * tests/openpgp/encrypt-dsa.test: Ditto.
      * tests/openpgp/encrypt.test: Ditto.
      * tests/openpgp/sigs.test: Ditto.
      The new output style is now:
            > MD5 SHA1 RIPEMD160 SHA256 SHA384 SHA512 SHA224 <
        PASS: sigs.test
      or if the test fails:
            > MD5 SHA1
        sigs.test: ooops
        FAIL: sigs.test
  11. 04 Apr, 2012 5 commits
  12. 27 Mar, 2012 3 commits
    • Werner Koch's avatar
      Fix timegm regression test. · 17499e76
      Werner Koch authored
      * common/t-timestuff.c (test_timegm): Change test to use January and
      not February or December+1.  Bug spotted by Daniel Kahn Gillmor.
    • Werner Koch's avatar
      Print warning for arguments not considered an option. · de01c51e
      Werner Koch authored
      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.
    • Werner Koch's avatar
      Update the maintenance instructions. · 26ec6c79
      Werner Koch authored
  13. 26 Mar, 2012 3 commits
  14. 28 Feb, 2012 1 commit
  15. 16 Feb, 2012 1 commit
  16. 07 Feb, 2012 6 commits
    • Werner Koch's avatar
      agent: Add pin length field to the shadowed private key format. · b817ae7d
      Werner Koch authored
      This is not yet fully implemented.  It will eventually allow to
      support pinpad equipped readers which do not support variable length
      pin lengths.
      * agent/protect.c (parse_shadow_info): Add optional arg R_PINLEN and
      parse pinlen info.  Change all callers to pass NULL for it.
    • Werner Koch's avatar
      Use new status printing functions. · 12ea5c90
      Werner Koch authored
      * agent/command.c (cmd_geteventcounter): Get rid of static buffers.
      * scd/command.c (cmd_serialno, cmd_learn): Simplify by using
    • Werner Koch's avatar
      agent: New function agent_print_status. · e78585cd
      Werner Koch authored
      * common/asshelp2.c (vprint_assuan_status): New.
      (print_assuan_status): Re-implement using above func.
      * agent/command.c (agent_print_status): New.
    • Werner Koch's avatar
      Add an item to NEWS. · 508ffb4e
      Werner Koch authored
    • Werner Koch's avatar
      po: Add Ukrainian translation. · 8d8d740b
      Werner Koch authored
      * po/uk.po: New.
      Note that all but one translation are currently disabled in LINGUAS.
    • Werner Koch's avatar
      common: Replace macro based function calls by using DEFAULT_ERRSOURCE. · 13ec7448
      Werner Koch authored
      * common/dns-cert.h (get_dns_cert): Remove macro.
      * common/dns-cert.c (_get_dns_cert): Rename to get_dns_cert.  Replace
      * common/http.h (http_parse_uri, http_raw_connect, http_open)
      (http_open_document, http_wait_response): Remove macros.
      * common/http.c (_http_parse_uri, _http_raw_connect, _http_open)
      (_http_open_document, _http_wait_response): Remove underscore from
      symbols.  Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
      * common/ssh-utils.h (ssh_get_fingerprint)
      (ssh_get_fingerprint_string): Remove macros.
      * common/ssh-utils.h (_ssh_get_fingerprint)
      (_ssh_get_fingerprint_string): Remove underscore from symbols.
      Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
      * common/tlv.h (parse_ber_header, parse_sexp): Remove macros.
      * common/tlv.c: Include util.h.
      (_parse_ber_header, _parse_sexp): Remove underscore from symbols.
      Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
  17. 06 Feb, 2012 4 commits
    • Werner Koch's avatar
      Add replacement hack for Android's broken ttyname. · 115a6ed5
      Werner Koch authored
      * configure.ac (HAVE_TTYNAME) [__ANDROID__]: Add hack.
    • Werner Koch's avatar
      agent: Simplify printing of INQUIRE_MAXLEN. · 7981cdd1
      Werner Koch authored
      * agent/command.c: Include asshelp.h.
      (cmd_pkdecrypt, cmd_genkey, cmd_preset_passphrase)
      (pinentry_loopback): Use print_assuan_status for INQUIRE_MAXLEN.
    • Werner Koch's avatar
      common: Add function print_assuan_status. · 1a0df850
      Werner Koch authored
      * common/asshelp2.c: New.
      (print_assuan_status): New function.
      * common/Makefile.am (common_sources): Add asshelp2.c.
    • Werner Koch's avatar
      common: Add a global variable to for the default error source. · eb0faef8
      Werner Koch authored
      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
      * 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.
  18. 03 Feb, 2012 1 commit