aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib (unfollow)
Commit message (Collapse)AuthorFilesLines
2014-06-02gpg: Fix bug parsing a zero length user id.Werner Koch1-2/+17
* g10/getkey.c (get_user_id): Do not call xmalloc with 0. * common/xmalloc.c (xmalloc, xcalloc): Take extra precaution not to pass 0 to the arguments. -- The problem did not occur in 1.x because over there the xmalloc makes sure to allocate at least one byte. With 2.x for most calls the xmalloc of Libgcrypt is used and Libgcrypt returns an error insteead of silent allocating a byte. Thus gpg 2.x bailed out with an "Fatal: out of core while allocating 0 bytes". The extra code in xmalloc.c is for more robustness for the other xmalloc calls. (cherry picked from commit 99972bd6e9abea71f270284f49997de5f00208af) Resolved conflicts: g10/getkey.c - ignore whitespace changes.
2013-08-01w32: Always require libiconv.Werner Koch1-110/+34
* configure.ac (missing_iconv): Set and die if we have no libiconv. * m4/iconv.m4: Update from libiconv 1.14. * tools/Makefile.am (gpgtar_LDADD): Add LIBICONV. * jnlib/utf8conv.c: Always include iconv.h (load_libiconv): Remove this w32 only function. (iconv_open, iconv, iconv_close): Remove W32 function pointer. (set_native_charset): Do not call load_libiconv. (jnlib_iconv_open, jnlib_iconv, jnlib_iconv_close): Ditto. -- This patch removes the on-demand-loading of libiconv which we did for 13 years or so. The rationale back then was that libiconv is too large and often not used. Nowadays all kind of Unix software has been ported to Windows and many of them require libiconv. Thus in the end there is no saving from not requiring it. It also remove a common source of trouble with awrong or missing iconv.dll. Signed-off-by: Werner Koch <[email protected]>
2013-08-01w32: Remove unused code.Werner Koch2-36/+0
* jnlib/w32-reg.c (write_w32_registry_string): Remove.
2013-05-10Release 2.0.20gnupg-2.0.20Werner Koch1-1/+1
2013-04-23w32: Almost everywhere include winsock2.h before windows.h.Werner Koch3-76/+85
-- This is required by newer mingw toolchain versions which demand that winsock2.h is included before windows.h. Now, due to the use of socket definitions in pth.h we need to include winsock2.h also in pth.h, now pth.h is often included after an include of windows.h and thus the compiler spits out a warning. To avoid that we include winsock2.h at all places the compiler complains about.
2013-04-22Allow marking options as ignored.Werner Koch2-18/+35
* jnlib/argparse.h (ARGPARSE_OPT_IGNORE): New. (ARGPARSE_TYPE_MASK): New, for internal use. (ARGPARSE_ignore): New. * jnlib/argparse.c (optfile_parse, arg_parse): Replace remaining constants by macros. (optfile_parse): Implement ARGPARSE_OPT_IGNORE. (arg_parse): Exclide ignore options from --dump-options. -- In addition to the ignore-invalid-option (commit 8ea49cf5) it is often useful to mark options in a configuration which as NOP. For example options which have no more function at all but can be expected to be found in existing conf files. Such an option (or command) may now be given as ARGPARSE_ignore (300, "obsolete-option") The 300 is merely used as a non-valid single option name much like group names or the 500+n values used for long options. Signed-off-by: Werner Koch <[email protected]>
2012-12-18jnlib: Add meta option ignore-invalid-option.Werner Koch2-5/+153
* jnlib/argparse.c (iio_item_def_s, IIO_ITEM_DEF): New. (initialize): Init field IIO_LIST. (ignore_invalid_option_p): New. (ignore_invalid_option_add): New. (ignore_invalid_option_clear): New. (optfile_parse): Implement meta option. -- This option is currently of no use. However, as soon as it has been deployed in all stable versions of GnuPG, it will allow the use of the same configuration file with an old and a new version of GnuPG. For example: If a new version implements the option "foobar", and a user uses it in gpg.conf, an old version of gpg would bail out with the error "invalid option". To avoid that the following line can be put above that option in gpg.conf ignore-invalid-option foobar This meta option may be given several times or several option names may be given as arguments (space delimited). Note that this option is not available on the command line. (cherry-picked from commit 41d564333d35c923f473aa90625d91f8fe18cd0b)
2012-01-31Update copyright year.Werner Koch1-61/+61
2011-12-02Generate the ChangeLog from commit logs.Werner Koch2-20/+27
* scripts/gitlog-to-changelog: New script. Taken from gnulib. * scripts/git-log-fix: New file. * scripts/git-log-footer: New file. * scripts/git-hooks/commit-msg: New script. * autogen.sh: Install commit-msg hook for git. * 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-01-11Update copyright year.Werner Koch1-1/+1
2009-08-26Refactor new code.Werner Koch2-38/+41
2009-08-26Implement tilde expansion in the same was as 1.4.Werner Koch5-46/+300
2009-08-25New fucntions strconcat and xstrconcat.Werner Koch5-2/+260
2009-07-07Minor bug fixes.Werner Koch6-19/+46
Enhanced function docs.
2009-06-04Define SUN_LEN also for W32.Werner Koch2-4/+12
2009-05-19Fix possible system freeze on Mac OS X.Werner Koch3-3/+38
2009-05-19Remove testing cruft.Werner Koch1-2/+2
Typo fixes.
2009-05-08Doc fixes.Werner Koch1-1/+0
2009-03-25log file fixes.Werner Koch3-12/+18
2009-03-03Argg again: Remove cruft from a test.Werner Koch1-1/+1
2009-03-03Add --reload command to gpgconf.Werner Koch1-1/+1
Fix a problem in exechelp.c Get ready for a release.
2009-02-25Fixed a nasty bug in scdaemon which led to a card reset if the card wasWerner Koch3-2/+23
inserted during scdaemon startup and a connection was made before the ticker had a chance to run. Add some stuff for better debugging.
2009-01-27Add a Geldkarte gadget application.Werner Koch2-0/+35
Minor other changes.
2009-01-20Print more directories with gpgconf --list-dirs.Werner Koch1-2/+2
2009-01-08Update spanish translation.Werner Koch1-1/+1
Cleanups. Allow utf-8 in email addresses.
2008-11-20Fix last change.Werner Koch2-3/+7
2008-11-12Made arg_parse more readable.Werner Koch3-333/+524
2008-11-11Reorder libs in kbx. Werner Koch1-1/+1
2008-11-11Minor cleanups.Werner Koch1-1/+1
2008-11-04Revamped the W32 gettext implementation.Werner Koch4-1084/+1089
2008-10-29Check that the socket is well and served by us.Werner Koch3-44/+81
2008-10-29Fix last chnage. Reported by Tom Pegios.Werner Koch2-1/+6
2008-10-28Fixed w32-gettext.Werner Koch2-1/+6
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch6-4/+29
2008-10-17Use more warning options with modern GCCs.Werner Koch1-0/+1
Other minor changes.
2008-10-15Made scdaemon more robust on Windows.Werner Koch2-0/+8
2008-09-29Remove hacks which are not anymore needed since we now require Libgcrypt 1.4Werner Koch4-182/+275
2008-06-26Start support of TCOS 3 cards.Werner Koch2-2/+7
Support restriction attribute. Fix utf-8 printing problems. Use AES by default.
2008-06-13Implement dotlocking for W32.Werner Koch2-125/+264
2008-06-11Removed unused variable.Werner Koch2-7/+7
2008-05-27Fixed segv in gpg-agent (command marktrusted).Werner Koch2-1/+10
Replaced almost all free by xfree. Translation fixes.
2008-05-09Updated German translation.Werner Koch1-0/+5
Fix in gpgconf for W32.
2008-04-18Adjust for the changed Camellia draft.Werner Koch3-42/+86
W32 gettext changes. Comment and typo fixes.
2008-03-25Changed the way i18n files are located under Windows. The setting of theWerner Koch3-121/+1238
Registry key is not anymore required. Helpfiles are not properly located.
2008-03-20Fix a bug in the ambigious name detection.Werner Koch3-4/+14
Minor cleanups.
2008-02-22Add some tests.Werner Koch2-2/+6
2007-11-19Started to implement the audit log feature.Werner Koch3-5/+37
Pass PINENTRY_USER_DATA and XAUTHORITY to Pinentry. Improved support for the quality bar. Minor internal restructuring. Translation fixes.
2007-10-01Use Assuan socket wrapper calls.Werner Koch3-83/+76
Made socket servers secure under Windows.
2007-08-29Extended the --check-program output: Error messages are now inlcued in anWerner Koch2-53/+64
easy parsable format.
2007-08-27Implemented more gpg-agen options to support certain passphrase policies.Werner Koch1-1/+1
New tool gpg-check-pattern.