aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* core: Fix broken strings (first letter missing)Werner Koch2019-09-101-1/+1
| | | | | | | | src/err-codes.h.in (GPG_ERR_KEYBOXD): Add missing tabs. -- Fixes-commit: c6d9598a8572e7757504ddf53c01dcf611228143 Signed-off-by: Werner Koch <[email protected]>
* estream: Fix dead assigniment.Werner Koch2019-09-081-1/+0
| | | | | | | | * src/estream-printf.c (pr_string): Here. -- GnuPG-bug-id: 4698 Signed-off-by: Werner Koch <[email protected]>
* gpgrt-config: Support Libs.private and Requires.private.NIIBE Yutaka2019-09-041-0/+20
| | | | | | * src/gpgrt-config.in: Support Libs.private and Requires.private. Signed-off-by: NIIBE Yutaka <[email protected]>
* estream: Fix gpgrt_poll at EOF.NIIBE Yutaka2019-08-231-1/+1
| | | | | | | | | | | | | | * src/estream.c [HAVE_POLL_H] (_gpgrt_poll): Catch POLLHUP event for want_read. -- At EOF, here is a difference of semantics between poll(2) and select(2). For poll(2), detection of EOF is an event of POLLHUP, not POLLIN. Fixes-commit: a21a7de8c2cf986235382e7e04805744f6df116e Signed-off-by: NIIBE Yutaka <[email protected]>
* estream: Fix gpgrt_poll to prevent waiting indefinitely for others.NIIBE Yutaka2019-08-231-0/+3
| | | | | | * src/estream.c (_gpgrt_poll): Go to leave, when something is ready. Signed-off-by: NIIBE Yutaka <[email protected]>
* estream: Fix poll condition.NIIBE Yutaka2019-08-221-3/+4
| | | | | | * src/estream.c (_gpgrt_poll): Fix for want_oob. Signed-off-by: NIIBE Yutaka <[email protected]>
* New error codes NO_KEYBOXD, KEYBOXD, NO_SERVICE, and SERVICE.Werner Koch2019-08-052-1/+23
| | | | --
* w32: Fix cast to internal fd.NIIBE Yutaka2019-07-251-1/+1
| | | | | | * src/estream.c (tmpfd): Use intptr_t. Signed-off-by: NIIBE Yutaka <[email protected]>
* estream: Fix IS_INVALID_FD.NIIBE Yutaka2019-07-251-5/+1
| | | | | | | | | | | | * src/estream.c (IS_INVALID_FD): Simply compare to -1. -- Perhaps, when it was written at first, use of HANDLE was in mind. Now, we have different set of methods for Windows, and this macro is only for integer fd access, no need of ifdef/endif. Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Fix HANDLE to internal fd conversion.NIIBE Yutaka2019-07-241-6/+21
| | | | | | | | | | * src/spawn-w32.c (handle_to_fd): Use intptr_t type. -- See the section of _open_osfhandle in C Run-Time Library Reference. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Use {CFLAGS,CPPFLAGS, LDFLAGS}_FOR_BUILD for helper programsdkg-fix-T4643Daniel Kahn Gillmor2019-07-182-4/+8
| | | | | | | | | | | * doc/Makefile.am: add CPPFLAGS_FOR_BUILD for yat2m-for-build (other flags were already present). * src/Makefile.am: add {CFLAGS,CPPFLAGS,LDFLAGS}_FOR_BUILD for mkhelper, mkw32errmap, and mkerrcodes. Debian-bug-id: 932213 GnuPG-bug-id: 4643 Signed-off-by: Daniel Kahn Gillmor <[email protected]>
* Fix signedness for a single-bit field.NIIBE Yutaka2019-07-111-3/+3
| | | | | | * src/gpgrt-int.h (struct _gpgrt_b64state): Use unsigned for bit flags. Signed-off-by: NIIBE Yutaka <[email protected]>
* estream: Add missing malloc check.Werner Koch2019-06-271-1/+6
| | | | | | * src/estream.c (_gpgrt_poll): Check for malloc error. Signed-off-by: Werner Koch <[email protected]>
* estream: Don't use variable length array.NIIBE Yutaka2019-06-261-1/+7
| | | | | | | | | * src/estream.c [HAVE_POLL_H] (_gpgrt_poll): No VLA. -- Fixes-commit: a21a7de8c2cf986235382e7e04805744f6df116e Signed-off-by: NIIBE Yutaka <[email protected]>
* estream: Use poll(2) when available.NIIBE Yutaka2019-06-262-1/+83
| | | | | | | | | | | * configure.ac: Detect poll.h. * src/estream.c [HAVE_POLL_H] (_gpgrt_poll): Use poll. -- Here, we use C99 feature of array declaration with variable. Signed-off-by: NIIBE Yutaka <[email protected]>
* tests: Skip the test when pkg-config is too old.NIIBE Yutaka2019-06-181-0/+6
| | | | | | | | | | | * src/gpg-error-config-test.sh.in: Check pkg-config version. -- Use of sort and sed 1q for version check is taken from .m4 code in gettext. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Take care of POSIX shell path.NIIBE Yutaka2019-06-185-4/+10
| | | | | | | | | | | | * configure.ac (INSTALLSHELLPATH): New. * src/Makefile.am: Change invocation of gpg-error-config-test.sh. * src/gpgrt-config.in (INSTALLSHELLPATH): To be substituted. * src/gpg-error-config-test.sh.in: Likewise. -- GnuPG-bug-id: 4574 Signed-off-by: NIIBE Yutaka <[email protected]>
* Portability fix for PID.NIIBE Yutaka2019-06-181-1/+1
| | | | | | | | | | * src/spawn-posix.c (gpgrt_wait_processes): Cast to int. -- On some systems (like Solaris), pid_t is long int. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Add failure exit for gpg-error-config build.NIIBE Yutaka2019-06-181-0/+1
| | | | | | | | * src/Makefile.am (gpg-error-config): Exit 1 on failure. -- Signed-off-by: NIIBE Yutaka <[email protected]>
* po: Update Japanese translation.NIIBE Yutaka2019-05-291-10/+6
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Detect to use strerror_s.NIIBE Yutaka2019-05-292-1/+12
| | | | | | | | | | * configure.ac [mingw32*] (strerror_s): Detect. * src/strerror.c [HAVE_STRERROR_S] (system_strerror_r): Use strerror_s. -- GnuPG-bug-id: 4539 Signed-off-by: NIIBE Yutaka <[email protected]>
* po: Update Polish translationWerner Koch2019-05-271-9/+5
| | | | --
* tests: Fix a memory leak.NIIBE Yutaka2019-05-141-0/+1
| | | | | | | | | * tests/t-logging.c (check_log_info): Free LOGBUF. -- GnuPG-bug-id: 4498 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update m4/iconv.m4.NIIBE Yutaka2019-05-131-48/+68
| | | | | | | | | | | * m4/iconv.m4: Update from gettext 0.20.1. -- This includes fixes of file descriptor leaks. GnuPG-bug-id: 4504 Signed-off-by: NIIBE Yutaka <[email protected]>
* awk: Prepare for Gawk 5.0.NIIBE Yutaka2019-04-157-11/+11
| | | | | | | | | | | | | | | | * src/Makefile.am: Use pkg_namespace (instead of namespace). * src/mkerrnos.awk: Likewise. * lang/cl/mkerrcodes.awk: Don't escape # in regexp. * src/mkerrcodes.awk, src/mkerrcodes1.awk, src/mkerrcodes2.awk: Ditto. -- In Gawk 5.0, regexp routines are replaced by Gnulib implementation, which only allows escaping specific characters. GnuPG-bug-id: 4459 Reported-by: Marius Schamschula Signed-off-by: NIIBE Yutaka <[email protected]>
* yat2m: Change style for @samp and add @kbd.Werner Koch2019-04-041-3/+4
| | | | | | -- Also a few comment typo fixes.
* post release updatesWerner Koch2019-03-192-1/+5
| | | | --
* Release 1.36libgpg-error-1.36gpgrt-1.36Werner Koch2019-03-192-4/+11
| | | | | | * configure.ac: Bump LT version to C27/A27/R0. Signed-off-by: Werner Koch <[email protected]>
* po: auto updateWerner Koch2019-03-1919-0/+187
| | | | --
* po: Update German translationWerner Koch2019-03-191-1/+7
| | | | --
* estream: Increase buffer size for Windows.Werner Koch2019-03-194-4/+11
| | | | | | | | * src/gpgrt-int.h (BUFFER_BLOCK_SIZE) [W32]: Increase from 512 to 8k. * src/w32-estream.c (READBUF_SIZE, WRITEBUF_SIZE): Increase from 4k to 8k. Signed-off-by: Werner Koch <[email protected]>
* syscfg: Add armv7a-unknown-linux-gnueabihf as an alias.Werner Koch2019-03-191-0/+1
| | | | | | | -- GnuPG-bug-id: 4409 Signed-off-by: Werner Koch <[email protected]>
* New error codes NO_AUTH and BAD_AUTHWerner Koch2019-02-113-0/+17
| | | | | | | | | -- In particular for PIV cards ithe use of BAD_PIN sounds worong, thus we now use dedicated codes. Signed-off-by: Werner Koch <[email protected]>
* build: Fix for Microsoft MSVC.Werner Koch2019-02-041-2/+2
| | | | | | | | | * src/gpgrt-int.h (_gpgrt_functions_w32_pollable): Declare with extern so that strict toolchains don't get confused. -- GnuPG-bug-id: 4356 Signed-off-by: Werner Koch <[email protected]>
* po: Update Polish translationJakub Bogusz2019-01-311-67/+31
| | | | --
* Post release updatesWerner Koch2019-01-282-1/+5
| | | | --
* Release 1.35libgpg-error-1.35gpgrt-1.35Werner Koch2019-01-282-2/+4
| | | | | | | | | | | | -- Because gpgrt-config is not anymore generated from gpgrt-config.in and a stale (generated) gpgrt-config was hanging around in the build directory the make distcheck target didn't caught this situation and we accidently distributed the old gpgrt-config from the build directory. Signed-off-by: Werner Koch <[email protected]>
* gpgscm: Build well even if NDEBUG defined.NIIBE Yutaka2019-01-231-1/+3
| | | | | | | | | | | | | * gpgscm/scheme.c (gc_reservation_failure): Fix adding ";". [!NDEBUG] (scheme_init_custom_alloc): Don't init seserved_lineno. -- In some build environment, NDEBUG is defined (although it's bad practice). This change supports such a situation. GnuPG-bug-id: 3959 Signed-off-by: NIIBE Yutaka <[email protected]>
* Post release updatesWerner Koch2019-01-162-1/+5
| | | | --
* Release 1.34libgpg-error-1.34gpgrt-1.34Werner Koch2019-01-167-8/+16
| | | | | | * configure.ac: Bump LT version to C26/A26/R0. Signed-off-by: Werner Koch <[email protected]>
* build: Fix regression in make distcheckWerner Koch2019-01-161-1/+1
| | | | | | | | * doc/Makefile.am (errorref.txt.x): -- Fixes-commit: fd6f64f1897e00b1d9711463ebb6ec7d099e1995 Signed-off-by: Werner Koch <[email protected]>
* build: Fix for BSD make.NIIBE Yutaka2019-01-151-1/+1
| | | | | | | | | | * doc/Makefile.am (errorref.txt.x): Don't use $<. -- Variable $< is only valid for suffix rules in BSD make. Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix symbol name typo in gpg-error.def.inAndre Heinecke2019-01-141-1/+1
| | | | * src/gpg-error.def.in (gogrt_abort): Correct to gpgrt_abort.
* build: Build with LD_LIBRARY_PATH, use of DT_RPATH (2/2).NIIBE Yutaka2019-01-102-6/+9
| | | | | | | | | | | * configure.ac (LDADD_FOR_TESTS_KLUDGE): New for --disable-new-dtags. * tests/Makefile.am (LDADD): Use LDADD_FOR_TESTS_KLUDGE. (t_lock_LDADD, t_poll_LDADD): Use LDADD. -- GnuPG-bug-id: 4298 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Build with LD_LIBRARY_PATH, use of DT_RPATH (1/2).NIIBE Yutaka2019-01-101-0/+32
| | | | | | * configure.ac: Check against --disable-new-dtags. Signed-off-by: NIIBE Yutaka <[email protected]>
* doc: Describe some causes for GPG_ERR_NO_NAME.Werner Koch2019-01-091-5/+10
| | | | --
* core: New functions gpgrt_abort and gpgrt_add_emergency_cleanup.Werner Koch2019-01-0419-50/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/init.c (emergency_cleanup_list): New gloabl var. (_gpgrt_add_emergency_cleanup): New. (_gpgrt_abort): New. Repalce all calls to abort by this. Also replace all assert by either log_assert or a stderr output followed by a _gpgrt_abort. (run_emergency_cleanup): New. * src/visibility.c (gpgrt_add_emergency_cleanup): New public API. (gpgrt_abort): New public API. -- Libgcrypt uses its own assert function which makes sure to terminate the secure memory. This is safe as log as an assert is triggered internally in Libgcrypt. GnuPG runs emergency cleanup handlers right before log_fatal etc to tell Libgcrypt to terminate the secure memory. With the move of the logging function to gpgrt in gnupg 2.3 this did not anymore. Thus we now provide a mechanism in gpgrt to do right that. Eventually Libgcrypt can also make use of this. What this does not handle are calls to abort or failed asserts in external libraries or in libc. We can't do anything about it in a library because a library may not setup signal handlers. Signed-off-by: Werner Koch <[email protected]>
* estream: Use correct POSIX name THOUSEP.Werner Koch2018-12-123-13/+16
| | | | | | | | | | | * src/estream-printf.c: Replace HAVE_LANGINFO_THOUSANDS_SEP by HAVE_LANGINFO_THOUSEP. (pr_integer): Use THOUSEP. -- GnuPG-bug-id: 4286 Reported-by: miod Signed-off-by: Werner Koch <[email protected]>
* syscfg: Add a riscv32 architectureAlistair Francis2018-12-112-0/+24
| | | | | | | | * src/syscfg/lock-obj-pub.riscv32-unknown-linux-gnu.h: New. * src/Makefile.am (lock_obj_pub): Add it. Signed-off-by: Alistair Francis <[email protected]> Signed-off-by: pino-kim <[email protected]>
* gpgrt-config: Portability fix for use of expr.NIIBE Yutaka2018-12-091-3/+3
| | | | | | | | | | | * src/gpgrt-config (sysroot): Care about possible interpretation of minus sign be considered an option to a program. (MAIN): Don't use 'match' of expr but use ':' instead. -- Reported-by: Roman Bogorodskiy <[email protected]> Signed-off-by: NIIBE Yutaka <[email protected]>