aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Release 2.0.27gnupg-2.0.27Werner Koch2015-02-181-1/+1
|
* Avoid double-close in unusual dotlock situations.Werner Koch2015-02-121-26/+32
| | | | | | | | | | | | | | | * jnlib/dotlock.c (create_dotlock): Avoid double close due to EINTR. -- close(2) says: close() should not be retried after an EINTR since this may cause a reused descriptor from another thread to be closed. (backported from commit 628b111fa679612e23c0d46505b1ecbbf091897d) Debian-Bug-Id: 773423 Signed-off-by: Werner Koch <[email protected]>
* jnlib: Fix typo in header inclusion protection macro.Werner Koch2014-08-111-1/+1
| | | | | -- GnuPG-bug-id: 1669
* Improve configure option --with-libgpg-error-prefixWerner Koch2014-06-241-1/+1
| | | | | | | | | | | -- GnuPG-bug-id: 1561 Note that this is not a complete solution. The libgpg-error include directory has now a higher preference but ld may not pick up the right library if another one is installed. The problem is that the -L option and the -l options are not emitted separately by gpg-error-config.
* gpg: Fix bug parsing a zero length user id.Werner Koch2014-06-021-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.
* w32: Always require libiconv.Werner Koch2013-08-011-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]>
* w32: Remove unused code.Werner Koch2013-08-012-36/+0
| | | | * jnlib/w32-reg.c (write_w32_registry_string): Remove.
* Release 2.0.20gnupg-2.0.20Werner Koch2013-05-101-1/+1
|
* w32: Almost everywhere include winsock2.h before windows.h.Werner Koch2013-04-233-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.
* Allow marking options as ignored.Werner Koch2013-04-222-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]>
* jnlib: Add meta option ignore-invalid-option.Werner Koch2012-12-182-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)
* Update copyright year.Werner Koch2012-01-311-61/+61
|
* Generate the ChangeLog from commit logs.Werner Koch2011-12-022-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.
* Update copyright year.Werner Koch2011-01-111-1/+1
|
* Refactor new code.Werner Koch2009-08-262-38/+41
|
* Implement tilde expansion in the same was as 1.4.Werner Koch2009-08-265-46/+300
|
* New fucntions strconcat and xstrconcat.Werner Koch2009-08-255-2/+260
|
* Minor bug fixes.Werner Koch2009-07-076-19/+46
| | | | | Enhanced function docs.
* Define SUN_LEN also for W32.Werner Koch2009-06-042-4/+12
|
* Fix possible system freeze on Mac OS X.Werner Koch2009-05-193-3/+38
|
* Remove testing cruft.Werner Koch2009-05-191-2/+2
| | | | | Typo fixes.
* Doc fixes.Werner Koch2009-05-081-1/+0
|
* log file fixes.Werner Koch2009-03-253-12/+18
|
* Argg again: Remove cruft from a test.Werner Koch2009-03-031-1/+1
|
* Add --reload command to gpgconf.Werner Koch2009-03-031-1/+1
| | | | | | Fix a problem in exechelp.c Get ready for a release.
* Fixed a nasty bug in scdaemon which led to a card reset if the card wasWerner Koch2009-02-253-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.
* Add a Geldkarte gadget application.Werner Koch2009-01-272-0/+35
| | | | | Minor other changes.
* Print more directories with gpgconf --list-dirs.Werner Koch2009-01-201-2/+2
|
* Update spanish translation.Werner Koch2009-01-081-1/+1
| | | | | | Cleanups. Allow utf-8 in email addresses.
* Fix last change.Werner Koch2008-11-202-3/+7
|
* Made arg_parse more readable.Werner Koch2008-11-123-333/+524
|
* Reorder libs in kbx. Werner Koch2008-11-111-1/+1
|
* Minor cleanups.Werner Koch2008-11-111-1/+1
|
* Revamped the W32 gettext implementation.Werner Koch2008-11-044-1084/+1089
|
* Check that the socket is well and served by us.Werner Koch2008-10-293-44/+81
|
* Fix last chnage. Reported by Tom Pegios.Werner Koch2008-10-292-1/+6
|
* Fixed w32-gettext.Werner Koch2008-10-282-1/+6
|
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-206-4/+29
|
* Use more warning options with modern GCCs.Werner Koch2008-10-171-0/+1
| | | | | Other minor changes.
* Made scdaemon more robust on Windows.Werner Koch2008-10-152-0/+8
|
* Remove hacks which are not anymore needed since we now require Libgcrypt 1.4Werner Koch2008-09-294-182/+275
|
* Start support of TCOS 3 cards.Werner Koch2008-06-262-2/+7
| | | | | | | Support restriction attribute. Fix utf-8 printing problems. Use AES by default.
* Implement dotlocking for W32.Werner Koch2008-06-132-125/+264
|
* Removed unused variable.Werner Koch2008-06-112-7/+7
|
* Fixed segv in gpg-agent (command marktrusted).Werner Koch2008-05-272-1/+10
| | | | | | Replaced almost all free by xfree. Translation fixes.
* Updated German translation.Werner Koch2008-05-091-0/+5
| | | | | Fix in gpgconf for W32.
* Adjust for the changed Camellia draft.Werner Koch2008-04-183-42/+86
| | | | | | W32 gettext changes. Comment and typo fixes.
* Changed the way i18n files are located under Windows. The setting of theWerner Koch2008-03-253-121/+1238
| | | | | Registry key is not anymore required. Helpfiles are not properly located.
* Fix a bug in the ambigious name detection.Werner Koch2008-03-203-4/+14
| | | | | Minor cleanups.
* Add some tests.Werner Koch2008-02-222-2/+6
|