summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Post release updateswk-masterrelease-1.26Werner Koch2016-12-212-1/+5
| | | | --
* Release 1.26libgpg-error-1.26Werner Koch2016-12-212-3/+3
| | | | | | * configure.ac: Bump LT version to C21/A21/R0. Signed-off-by: Werner Koch <wk@gnupg.org>
* po: Auto-updateWerner Koch2016-12-2118-75/+984
| | | | --
* po: Update German translationWerner Koch2016-12-211-4/+43
| | | | --
* New error code GPG_ERR_TRY_LATER.Werner Koch2016-12-133-1/+8
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* New error code GPG_ERR_DNS_TIMEOUT.Werner Koch2016-12-123-4/+10
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* New error codes to support libdns.Werner Koch2016-12-123-0/+69
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* Fix NULL segv in new option --descWerner Koch2016-12-021-0/+3
| | | | | | * src/gpg-error.c (print_desc): Shortcur for unknown symbols. Signed-off-by: Werner Koch <wk@gnupg.org>
* New error code GPG_ERR_INV_FLAGWerner Koch2016-12-023-0/+15
|
* New option --desc for gpg-error.Werner Koch2016-12-024-334/+623
| | | | | | | | | | | | | | | * doc/errorref.txt: Remove all tabs. * doc/Makefile.am (install-data-local): New to install errorref.txt. (uninstall-local): New. (errorref.txt.x): New. * src/Makefile.am (gpg_error_CPPFLAGS): Define PKGDATADIR * src/gpg-error.c (print_desc): New. (show_usage): New. (main): Improve option parser. Add new option --desc. Call print_desc. -- Signed-off-by: Werner Koch <wk@gnupg.org>
* w32-iconv: Remove invalid link to unicode.org in comment.Daniel Kahn Gillmor2016-11-181-1/+0
| | | | | | | | | | | | | -- http://www.unicode.org/unicode/onlinedat/languages.html currently says: The mapping information between Macintosh and Windows codes is no longer available on the Unicode site. Please consult the Macintosh and Windows developer sites. And there are no outbound links. Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* w32: Update links from http to https.Daniel Kahn Gillmor2016-11-181-2/+2
| | | | | | -- Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* Fix more misspellings.Daniel Kahn Gillmor2016-11-184-6/+6
| | | | | | -- Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* po: Convert ro.po to UTF-8.Daniel Kahn Gillmor2016-11-181-188/+188
| | | | | | -- Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* Convert THANKS to UTF-8.Daniel Kahn Gillmor2016-11-181-1/+1
| | | | | | -- Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* Fix misspellings in error descriptions.Daniel Kahn Gillmor2016-11-1821-43/+41
| | | | | | -- Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
* Fix EXEEXT for lock obj creation.NIIBE Yutaka2016-11-171-1/+1
| | | | | | | | | | | | * src/Makefile.am (lock-obj-pub.native.h): Add EXEEXT for the executable gen-posix-lock-obj. -- This change is from packaging work for Cygwin. Reported-by: Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
* Post release updates.Werner Koch2016-11-142-1/+5
| | | | --
* Release 1.25libgpg-error-1.25Werner Koch2016-11-143-22/+53
| | | | | | * configure.ac: Set LT version to C20/A20/R0. Signed-off-by: Werner Koch <wk@gnupg.org>
* po: Auto update.Werner Koch2016-11-1418-0/+642
| | | | --
* po: Update German translationWerner Koch2016-11-141-1/+28
|
* Fix typo in two new error descriptions.Werner Koch2016-11-142-3/+3
|
* estream: Minor portability fix.Werner Koch2016-11-122-4/+4
| | | | | | | | | | -- A trailing comma in an enum is not groked by all compilers. Binary operation should have their own parentheses to make it clear that a binary operator was meant. Signed-off-by: Werner Koch <wk@gnupg.org>
* estream: Support 'es_poll' on Windows.Justus Winter2016-11-125-76/+1177
| | | | | | | | | | | | | | | | | | | | | * src/Makefile.am (arch_sources): Add new file. * src/estream.c (O_NONBLOCK): Move to 'gpgrt-int.h'. (BUFFER_BLOCK_SIZE): Likewise. (BUFFER_UNREAD_SIZE): Likewise. (struct notify_list_s, notify_list_t): Likewise. (struct _gpgrt_stream_internal, estream_internal_t): Likewise. (X_POLLABLE): New macro. (parse_mode): Parse keyword 'pollable', emulate O_NONBLOCK using the same mechanism on Windows. (_gpgrt_poll): Use the new '_gpgrt_w32_poll' on Windows. * src/gpgrt-int.h (_gpgrt_functions_w32_pollable): New declaration. (_gpgrt_w32_pollable_create): New prototype. (_gpgrt_w32_poll): Likewise. * src/w32-estream.c: New file. This code is adapted from GPGME. * tests/t-poll.c (create_pipe): Create pollable streams. GnuPG-bug-id: 2731 Signed-off-by: Justus Winter <justus@g10code.com>
* estream: Track the kind of backend used.Justus Winter2016-11-122-17/+33
| | | | | | | | | * src/estream.c (struct _gpgrt_stream_internal): Add 'kind'. (init_stream_obj): New parameter 'kind', initialize field. (es_create): New parameter 'kind'. Update all callers. * src/gpgrt-int.h (gpgrt_stream_backend_kind_t): New type. Signed-off-by: Justus Winter <justus@g10code.com>
* estream: Rework how the cookie functions are handled.Justus Winter2016-11-122-49/+69
| | | | | | | | | | | | | | | | | | | | | | * src/estream.c (cookie_ioctl_function_t): Move to 'gpgrt-int.h', along with the macros for the IOCTL numbers. (estream_functions_mem): Use the new type and add the ioctl function. (estream_functions_fd): Likewise. (estream_functions_w32): Likewise. (estream_functions_fp): Likewise. (init_stream_object): Use the new type, and also initialize 'func_ioctl'. (es_create): Use the new type. (_gpgrt_fopen): Adapt. (_gpgrt_mopen): Likewise. (_gpgrt_fopenmem): Likewise. (_gpgrt_fopencookie): Likewise. (_gpgrt_fdopen): Likewise. (_gpgrt_fpopen): Likewise. (do_w32open): Likewise. * src/gpgrt-int.h (struct cookie_io_functions_s): New type. Signed-off-by: Justus Winter <justus@g10code.com>
* estream: Rework modestring handling.Justus Winter2016-11-121-46/+44
| | | | | | | | | | | | | | | | | | * src/estream.c (X_SAMETHREAD, X_SYSOPEN): New macros. (parse_mode): Rework how information flows from here to 'es_create'. Instead of using an integer flag per mode, use flags. (init_stream_obj): Adapt accordingly. (es_create): Likewise. (_gpgrt_fopen): Likewise. (_gpgrt_mopen): Likewise. (_gpgrt_fopenmem): Likewise. (_gpgrt_fopencookie): Likewise. (_gpgrt_fdopen): Likewise. (_gpgrt_fpopen): Likewise. (do_w32open): Likewise. (_gpgrt_freopen): Likewise. Signed-off-by: Justus Winter <justus@g10code.com>
* Add new interface gpgrt_get_syscall_clamp.Werner Koch2016-11-128-0/+27
| | | | | | | | | | | | | * src/visibility.c (gpgrt_get_syscall_clamp): New. * src/gpg-error.vers, src/gpg-error.def.in: Add function. * src/gpg-error.h.in: Ditto. * src/estream.c (_gpgrt_get_syscall_clamp): New. -- This function can be used by other libraries to set their own system clamp functions. Signed-off-by: Werner Koch <wk@gnupg.org>
* Use the syscall clamp functions also for lock functionsWerner Koch2016-11-117-1/+104
| | | | | | | | | | | | | | | | | | | | * src/posix-lock.c (pre_lock_func, post_lock_func): New. (_gpgrt_lock_set_lock_clamp): New. (_gpgrt_lock_lock): Use clamp functions. * src/w32-lock.c (pre_lock_func, post_lock_func): New. (_gpgrt_lock_set_lock_clamp): New. (_gpgrt_lock_lock): Use clamp functions. * src/posix-lock.c (pre_syscall_func, post_syscall_func): New. (_gpgrt_thread_set_syscall_clamp): New. (_gpgrt_yield): Use clamp functions. * src/w32-lock.c (pre_syscall_func, post_syscall_func): New. (_gpgrt_thread_set_syscall_clamp): New. (_gpgrt_yield): Use clamp functions. * src/estream.c: Include lock.h and thread.h. (do_deinit): Call _gpgrt_lock_set_lock_clamp. (_gpgrt_set_syscall_clamp): Ditto. Signed-off-by: Werner Koch <wk@gnupg.org>
* w32: Fix lock c++ narrowing conversion warningAndre Heinecke2016-11-111-2/+2
| | | | | | | | | * src/syscfg/lock-obj-pub.mingw32.h (gpgrt_lock_t): Declare priv as unsigned char. -- This fixes error: narrowing conversion of ‘255’ from ‘int’ to ‘volatile char’ inside { } [-Werror=narrowing]
* Change description of GPG_ERR_OPEN_KEYRING.Werner Koch2016-11-1021-21/+21
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* Add error codes GPG_ERR_TOO_YOUNG and GPG_ERR_TOO_OLD.Werner Koch2016-11-023-0/+12
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* tests: Fix name of the test.Justus Winter2016-10-181-1/+1
| | | | | -- Signed-off-by: Justus Winter <justus@g10code.com>
* estream: Fix modestring parsing.Justus Winter2016-10-181-1/+1
| | | | | | * src/estream.c (parse_mode): Fix parsing the 'sysopen' flag. Signed-off-by: Justus Winter <justus@g10code.com>
* Add error code USER_ID_EXISTS, NAME_EXISTS, and DUP_NAME.Werner Koch2016-10-073-2/+15
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* syscfg: Add support for {i686,x86_64}-apple-darwin.Werner Koch2016-10-073-0/+56
| | | | | | | | -- Thanks to Chris Ballinger <chris@chatsecure.org> for the files. Signed-off-by: Werner Koch <wk@gnupg.org>
* Check the size of the time_t.Werner Koch2016-09-011-0/+14
| | | | | | | * configure.ac (AC_HEADER_TIME): New. (AC_CHECK_SIZEOF): Check size of time_t. Signed-off-by: Werner Koch <wk@gnupg.org>
* Add error WINDOW_TOO_SMALL, WINDOW_TOO_LARGE, and MISSING_ENVVAR.Werner Koch2016-09-013-2/+48
| | | | Signed-off-by: Werner Koch <wk@gnupg.org>
* New error code GPG_ERR_ENGINE_TOO_OLDWerner Koch2016-08-162-1/+6
|
* Post release updates.Werner Koch2016-07-142-1/+5
| | | | --
* Release 1.24libgpg-error-1.24Werner Koch2016-07-143-2/+10
|
* build: Update config.{guess,sub} to {2016-05-15,2016-06-20}.Werner Koch2016-07-132-13/+23
| | | | | | | * build-aux/config.guess: Update. * build-aux/config.sub: Update. Signed-off-by: Werner Koch <wk@gnupg.org>
* Add an option to disable testsYann E. MORIN2016-07-122-1/+12
| | | | | | | | | | | | * configure.ac: add an option to enable/disable building tests * Makefile.am: conditionally build tests -- On an embeded device, there is no reason to have the tests present in a production release build. Add a configure-time option to disable them. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* Fix build without threadsYann E. MORIN2016-07-123-3/+9
| | | | | | | | | | | | | | | * src/gen-posix-lock-obj.c: properly guard inclusioin of pthread.h * tests/t-lock.c: likewise * tests/t-poll.c: likewise -- Although ./configure checks for thread support, gen-posix-lock-obj and two tests still include pthread.h unconditionally. Guard that inclusion using the same condition as all other uses of pthread-related code. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
* Define EWOULDBLOCK in case it is not definedAndre Heinecke2016-07-051-0/+5
| | | | | | | * src/estream.c (EWOULDBLOCK): Define fallback. -- Older mingw versions (2.0) do not define EWOULDBLOCK in errno.h
* yat2m: Fix table formatting.Werner Koch2016-07-021-1/+3
| | | | | | | * doc/yat2m.c (proc_texi_cmd): Use .TQ for @itemx. Print a .P at the end of a level 0 table. Signed-off-by: Werner Koch <wk@gnupg.org>
* estream: Fix bug es_fclose_snatch if a seek has been used.Werner Koch2016-06-271-1/+1
| | | | | | * src/estream.c (func_mem_ioctl): Set LEN from DATA_LEN. Signed-off-by: Werner Koch <wk@gnupg.org>
* w32: Silence compiler warnings about redefined macros.Werner Koch2016-06-251-6/+19
| | | | | | * src/estream.c (S_IRGRP) [W32]: Protect against redefinition. Signed-off-by: Werner Koch <wk@gnupg.org>
* doc: Update yat2m.cWerner Koch2016-06-252-8/+57
| | | | | | | | | | | | * doc/yat2m.c: Update from gnupg. -- yat2m.c has been taken from gnupg commit 22b9bea1c3d0e944aa539a87d79e47d92ca5309f and the copy here shall now be considered as the canonical version. Signed-off-by: Werner Koch <wk@gnupg.org>
* estream: Remove two compiler warning.Werner Koch2016-06-241-40/+41
| | | | | | | | | * src/estream.c (func_file_create): Remove dead assignment. (doreadline): Do not decrement SPACE_LEFT before breaking the loop. Add an extra block to limit the scope of that variable. -- Signed-off-by: Werner Koch <wk@gnupg.org>