aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* build: Improve how to determine $libdir for gpgrt-configNIIBE Yutaka2021-02-121-46/+42
| | | | | | | | | * src/gpg-error.m4: Fix $gpgrt_libdir handling. -- GnuPG-bug-id: 5293 Signed-off-by: NIIBE Yutaka <[email protected]>
* doc: Document another interface change in 1.37Werner Koch2021-02-101-0/+1
| | | | | | | -- The new inline function gpg_err_code_from_sqlite was missing in the NEWS file.
* Support cross-compiling on more platforms.NIIBE Yutaka2021-02-091-4/+12
| | | | | | | | | * src/gen-lock-obj.sh (ECHO_C, ECHO_N): Portability fix. -- GnuPG-bug-id: 5289 Signed-off-by: NIIBE Yutaka <[email protected]>
* yat2m: New option --html and some basic html rendering.Werner Koch2021-01-071-43/+272
| | | | | | -- Not yet finished.
* doc: Add a description for GPG_ERR_USE_CONDITIONS.Werner Koch2021-01-051-0/+8
| | | | --
* po: Update Traditional Chinese Translation.bobwxc2020-12-281-366/+175
| | | | | | | | -- GnuPG-bug-id: 5189 Co-authored-by: Chih-Hsuan Yen Signed-off-by: bobwxc <[email protected]>
* po: Update Simplified Chinese Translation.bobwxc2020-12-241-600/+367
| | | | | | -- Signed-off-by: bobwxc <[email protected]>
* Post release updatesWerner Koch2020-12-212-1/+7
| | | | --
* Release 1.41libgpg-error-1.41gpgrt-1.41Werner Koch2020-12-212-2/+5
|
* core: Yet another fix to the ignore meta command.Werner Koch2020-12-211-1/+18
| | | | | * src/argparse.c (_gpgrt_argparse): Entirely skip ignored sysconf commands. Fix state transitions in the ignore case.
* po: Fix two typos in the German translationWerner Koch2020-12-211-3/+3
| | | | --
* Post release updatesWerner Koch2020-12-213-2/+9
| | | | --
* Release 1.40libgpg-error-1.40gpgrt-1.40Werner Koch2020-12-213-4/+15
| | | | * configure.ac: Bump LT version to C31/A31/R0.
* po: Auto-updateWerner Koch2020-12-211-2/+4
| | | | --
* po: Update German translationWerner Koch2020-12-211-18/+11
| | | | --
* po: Update Polish translation.Jakub Bogusz2020-12-211-71/+46
| | | | --
* w32: Allow Unicode for internal getusername function.Werner Koch2020-12-211-9/+19
| | | | | | | | | | * src/sysutils.c (_gpgrt_getusername) [W32]: Use GetUserNameW. -- This is used by argparse for user specific parts. Tested using the echo meta-command. Signed-off-by: Werner Koch <[email protected]>
* core: Fix the "ignore" meta command of the argparser.Werner Koch2020-12-183-37/+60
| | | | | | | | | | | | | * src/argparse.c (_gpgrt_argparse): Factor some code out to ... (prepare_arg_return): new. (_gpgrt_argparse): No missing arg error in ignore sections. -- Options in an [ignore] section do not anymore lead to an error if an argument is missing. However, if the option is also in a force section the error is thrown. Signed-off-by: Werner Koch <[email protected]>
* build: Use AC_CHECK_TOOL to detect objdump for cross build.NIIBE Yutaka2020-12-071-3/+3
| | | | | | | | | * configure.ac (CROSS_HOST_OBJDUMP): Remove, but use AC_CHECK_TOOL. -- Co-authored-by: John Ericson Signed-off-by: NIIBE Yutaka <[email protected]>
* m4: Update with newer autoconf constructs.NIIBE Yutaka2020-11-171-3/+3
| | | | | | * src/gpg-error.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Update to new autoconf constructs.NIIBE Yutaka2020-11-176-25/+31
| | | | | | | | | | | | | | * configure.ac Replace AC_GNU_SOURCE to Use AC_USE_SYSTEM_EXTENSIONS. Replace AC_HELP_STRING to AS_HELP_STRING. * m4/estream.m4: Replace AC_TRY_LINK to AC_LINK_IFELSE. * m4/gnupg-misc.m4: Replace AC_TRY_COMPILE to AC_COMPILE_IFELSE. * m4/libtool.m4: Use AC_LANG_PUSH/AC_LANG_POP instead of AC_LANG_SAVE/AC_LANG_RESTORE. * m4/readline.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Fix quote for _combo. * m4/threadlib.m4: Replace AC_HELP_STRING to AS_HELP_STRING. Signed-off-by: NIIBE Yutaka <[email protected]>
* New public function gpgrt_access.Werner Koch2020-10-1911-3/+90
| | | | | | | | | | | | | | | | | | | | | | * src/gpg-error.h.in (gpgrt_access): New. * src/gpg-error.vers. src/gpg-error.def.in: Add new function. * src/sysutils.c (any8bitchar): New. (_gpgrt_access): New. * src/visibility.c (gpgrt_access): New. * src/spawn-w32.c (_gpgrt_spawn_process_detached): Use it. * src/argparse.c (try_versioned_conffile): Use it. * tests/t-stringutils.c (check_access): New simple test. -- This is basically a wrapper to allow handling of utf8 encoded file names on Windows. This also fixes the case for versioned config files in directories with non-ascii characters. The new test needs to be run manually on Windows using a directory with Unicode characters. GnuPG-bug-id: 5098
* w32: Support utf8 also for getcwd.Werner Koch2020-10-095-23/+172
| | | | | | | | | | | | * src/sysutils.c (_gpgrt_getcwd) [W32]: Implement utf-8 support. * src/w32-gettext.c (wchar_to_native): Factor some code out to .. (wchar_to_cp): new. (_gpgrt_wchar_to_utf8): New. * tests/t-stringutils.c: Include windows.h. (utf8_to_wchar): New. (wchar_to_utf8): New. (mygetcwd): Use wchar version for Windows. (main): New option --pwd.
* doc: Fix typos in commentsWerner Koch2020-10-082-5/+4
| | | | --
* po: Update Japanese Translation.NIIBE Yutaka2020-08-251-18/+10
| | | | | | -- Signed-off-by: NIIBE Yutaka <[email protected]>
* Post release updatesWerner Koch2020-08-242-1/+5
| | | | --
* Release 1.39libgpg-error-1.39gpgrt-1.39Werner Koch2020-08-243-6/+18
|
* core,w32: Add UTF-8 support to gpgrt_fopen, gpgrt_mkdir and gpgrt_chdir.Werner Koch2020-08-217-22/+232
| | | | | | | | | | | | | | | | | | | | * src/protos.h: New. * src/Makefile.am (libgpg_error_la_SOURCES): Add file. * src/gpgrt-int.h: Include protos.h. * src/sysutils.c (_gpgrt_mkdir) [W32]: Make UTF-8 aware. (_gpgrt_chdir) [W32]: Ditto. * src/w32-gettext.c: Include protos.h. (utf8_to_wchar): Allow for strings. (_gpgrt_utf8_to_wchar): New. (_gpgrt_free_wchar): New. * src/estream.c (map_w32_to_errno): Add more error codes. (_gpgrt_w32_set_errno): New. (any8bitchar) [W32]: New helper. (func_file_create) [W32]: Convert file name and use _wopen. -- GnuPG-bug-id: 4083 Signed-off-by: Werner Koch <[email protected]>
* argparse: Handle a corner case of wrong ARGC.NIIBE Yutaka2020-08-211-2/+1
| | | | | | * src/argparse.c (arg_parse): Avoid null dereference when ARGC is wrong. Signed-off-by: NIIBE Yutaka <[email protected]>
* Fix a current gcc's -fsanitize warning.Werner Koch2020-08-171-2/+2
| | | | | | | | * src/argparse.c (ARGPARSE_FLAG__INITIALIZED): Make sure it is an unsigned int. -- GnuPG-bug-id: 5026
* core,w32: Use timeout in es_poll even if there are no FDs.Werner Koch2020-08-111-3/+17
| | | | | | | | | | | | * src/w32-estream.c (_gpgrt_w32_poll): Sleep if there are no handles to wait for. -- This better matches the semantics of poll and select and avoid busy waitins. We had this problem for example in the LDAP helper process reaper of GnuPG's Dirmngr. Signed-off-by: Werner Koch <[email protected]>
* Make --lib-version work again.Werner Koch2020-08-051-3/+36
| | | | | | | | | | | * src/gpg-error.c (main): Add printing code. -- This was lost while changing to the included option parser back in 2018. The new code also does some prettying of the output. Fixes-commit: 11ce9bc3d6fe75859e18112824ae7ec3ca0fc8df Signed-off-by: Werner Koch <[email protected]>
* gpgrt-config: Fix handling 'Requires' field.NIIBE Yutaka2020-08-031-6/+11
| | | | | | | | | | * src/gpgrt-config.in (get_attr_l): New. (all_required_config_files): Use get_attr_l. -- GnuPG-bug-id: 5010 Signed-off-by: NIIBE Yutaka <[email protected]>
* w32: Add gpgrt_fcancel to the definition.NIIBE Yutaka2020-07-151-0/+2
| | | | | | | * src/gpg-error.def.in (gpgrt_fcancel): Add. Fixes-commit: 3413489d25577e3fe7f529b8e610a45d2bd1857c Signed-off-by: NIIBE Yutaka <[email protected]>
* estream: Add gpgrt_fcancelWerner Koch2020-06-268-9/+49
| | | | | | | | | | | | * src/estream.c (do_close): Add arg 'cancel_mode' and chnage all callers. (_gpgrt_fcancel): New. * src/gpg-error.def.in, src/gpg-error.vers: Add function. * src/visibility.c (gpgrt_fcancel): New. * src/gpg-error.h.in (gpgrt_fcancel): New. -- Signed-off-by: Werner Koch <[email protected]>
* build: Fix the gpg-error-config test for cross build.NIIBE Yutaka2020-06-151-0/+2
| | | | | | | * src/gpg-error-config-test.sh.in: Clear PKG_CONFIG_SYSROOT_DIR. GnuPG-bug-id: 4973 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Fix command-line to make 'src 'dir.NIIBE Yutaka2020-06-111-1/+1
| | | | | | | * configure.ac: Mistake, then, fix it. Fixes-commit: ce97528fa3dcc58d86e18d4d8820f210a624f63d Signed-off-by: NIIBE Yutaka <[email protected]>
* build: On cross build, detect host's objdump.NIIBE Yutaka2020-06-111-8/+13
| | | | | | | | | | | | | | | | * configure.ac [*-*-linux*] (CROSS_HOST_OBJDUMP): New. -- To support widely, we could also use objdump configured for multiple archs which supports host's format (instead of $host_alias-objdump), like objdump in binutils-multiarch of Debian, but it's not that easy to maintain the code to determine format name from $host_alias. Or we could use eu-size in elfutils. GnuPG-bug-id: 4973 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Fix cross-compiling into a separate build dir.David Michael2020-06-032-1/+2
| | | | | | | | | * configure.ac: Create the src directory before writing into it. * src/Makefile.am (EXTRA_DIST): Add gen-lock-obj.sh. -- Signed-off-by: David Michael <[email protected]>
* Post release updatesWerner Koch2020-05-292-1/+5
| | | | --
* Release 1.38libgpg-error-1.38gpgrt-1.38Werner Koch2020-05-292-3/+18
|
* po: Auto updateWerner Koch2020-05-2920-77/+906
| | | | --
* po: Update Ukrainian translationYuri Chornoivan2020-05-291-49/+40
|
* po: Update and proofread Russian translationIneiev2020-05-291-175/+40
|
* syscfg: add 64-bit big-endian MIPS architecturedkg/fix-4952Daniel Kahn Gillmor2020-05-192-0/+26
| | | | | | | | | | | | | * src/syscfg/lock-obj-pub.mips64-unknown-linux-gnuabi64.h: new. * src/Makefile.am (lock_obj_pub): Add it. -- This information was dervied and reported by YunQiang Su <[email protected]>. GnuPG-bug-id: 4952 Debian-bug-id: 960161 Signed-off-by: Daniel Kahn Gillmor <[email protected]>
* build: Use gen-lock-obj.sh script when possible.NIIBE Yutaka2020-04-092-0/+21
| | | | | | | | | | | | | * configure.ac (HAVE_GENERATED_LOCK_OBJ_H): New. * src/Makefile.am: Support HAVE_GENERATED_LOCK_OBJ_H. -- For cross build, when possible (currently for GNU/Linux), generate lock-obj-pub.native.h by the script. GnuPG-bug-id: 4774 Signed-off-by: NIIBE Yutaka <[email protected]>
* build: Add a shell script to generate lock-obj-pub.h.NIIBE Yutaka2020-04-091-0/+112
| | | | | | * src/gen-lock-obj.sh: New. Signed-off-by: NIIBE Yutaka <[email protected]>
* core: Improve the echo and info meta commands of the arg parserWerner Koch2020-04-033-12/+84
| | | | | | | | | | | * src/argparse.c (handle_meta_echo): Substitue some vars. (handle_meta_user): Factor some code out to ... (assure_username): new. -- Yeah, that is not really needed but might sometimes be helpful. Signed-off-by: Werner Koch <[email protected]>
* core: Implement meta command [user] also for WindowsWerner Koch2020-04-032-2/+21
| | | | | | | | | | * src/argparse.c (initialize): Clear username. * src/sysutils.c (_gpgrt_getusername): Implement for Windows. -- This also fixes a missing intialization Signed-off-by: Werner Koch <[email protected]>
* core: Implement meta command [user] for the arg parser.Werner Koch2020-04-034-36/+125
| | | | | | | | | | | | | | | | | | | | * src/sysutils.c (_gpgrt_getusername): New. * src/argparse.c (struct _gpgrt_argparse_internal_s): New flags user_* and store the current user. (initialize): Free new malloced field. Clear new flags. (handle_meta_user): Implement. (handle_metacmd): Implement user sections. Remove "group" meta command. (_gpgrt_argparse): Implement user sections. (finish_read_sys): Reset new vars. -- Implementing group would be somewhat complicated and it is doubtful whether this really makes sense and is manageable for the admin. Note that we have not yet implemented this for Windows. Signed-off-by: Werner Koch <[email protected]>