- 14 Dec, 2018 9 commits
-
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
-
- 12 Dec, 2018 4 commits
-
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
Update to upstream version '1.33' with Debian dir 755a709d8c3005fe12374e12d50259a3982012b5
-
Daniel Kahn Gillmor authored
-
Daniel Kahn Gillmor authored
Fixes lintian: public-upstream-key-not-minimal See https://lintian.debian.org/tags/public-upstream-key-not-minimal.html for more details.
-
- 07 Dec, 2018 3 commits
-
-
Werner Koch authored
* configure.ac: Set LT version to C25/A25/R0. GnuPG-bug-id: 4205 Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/w32-gettext.c (struct override_locale): new. (my_nl_locale_name): Take care of that. (gpgrt_w32_override_locale): New. * src/gpg-error.def.in: Add gpgrt_w32_override_locale. * src/gpg-error.c: New command --locale for Windows. -- GnuPG-bug-id: 3733 Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
-- Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 06 Dec, 2018 1 commit
-
-
Werner Koch authored
* src/logging.c (struct fmt_string_filter_s): New. (fmt_string_filter): New. (_gpgrt_logv_internal): Use the filter. -- This change has two advantages: a) There is no more need to first escape string arguments before passing them to a log function and b) you can't forget to do the escaping and thus attacks using diagnostic output to trick out users won't work. The drawback is that you see \n instead of a real LF and under Windows the backslash in file names are doubled. Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 05 Dec, 2018 3 commits
-
-
Werner Koch authored
* src/logging.c (set_file_fd): Add and use new arg 'stream'. (_gpgrt_log_set_sink): Implement setting an estream sink. * tests/t-logging.c: New test. * tests/Makefile.am (TESTS): Add test. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* tests/t-common.h: Include gpgrt.h instead of gpg-error.h. (die, fail, show): Add printf attributes. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Marcus Brinkmann authored
-
- 26 Nov, 2018 2 commits
-
-
Werner Koch authored
* src/gpg-error.h.in (gpgrt_string_filter_t): New type. (gpgrt_fprintf_sf, gpgrt_fprintf_sf_unlocked): New. * src/gpg-error.vers, src/gpg-error.def.in: Add them. * src/visibility.c (gpgrt_fprintf_sf): New. (gpgrt_fprintf_sf_unlocked): New. * src/estream-printf.c (pr_string): Add and use args sf, sfvalue and string_no. (do_format): Add args sf and sfvalue. Keep a string format counter. (_gpgrt_estream_format): Add args sf and sfvalue. Change all callers to provide NULL for them. * src/estream.c (_gpgrt_vfprintf_unlocked, _gpgrt_vfprintf): Add sf and sfvalue and adjust all callers. (do_print_stream): Ditto. * tests/t-printf.c (stream_to_string): New. (struct sfstate_s): New. (string_filter): New. (check_fprintf_sf): New. (main): Call new test. -- The actual reason to implement these functions is to enhance the internal logging function with a filter to sanitized strings so that control values or other things can be quoted. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/gpg-error.h.in (gpgrt_ftruncate, es_ftruncate): New. * src/gpg-error.def.in, src/gpg-error.vers: Add gpgrt_ftruncate. * src/visibility.c (gpgrt_ftruncate): new. * src/gpgrt-int.h (COOKIE_IOCTL_TRUNCATE): New. * src/estream.c (func_mem_ioctl): Support new internal IOCTL. (_gpgrt_ftruncate): New. -- Right now the ftruncate works only on memory streams. Can easily be added to other stream times. Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 15 Nov, 2018 1 commit
-
-
Werner Koch authored
* src/gpg-error.h.in: New API gpgrt_cmp_version. * src/visibility.c (gpgrt_cmp_version): New wrapper. * src/version.c (parse_version_string): Revamped. (do_cmp_version): New. (_gpgrt_cmp_version): New. (_gpg_error_check_version): Re-implemented using the new func. * tests/t-version.c: Include t-common.h. (t_gpgrt_cmp_version): New test. (main): Run new test. Change test for new version number to require a 2 level number. -- We have implementations of very similar functions in all out libs. Thus it makes sense to provide a generic version. This version is actually derived from the ftp-indexer.c we use for the gnupg website (see the gnupg-doc repo). Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 14 Nov, 2018 1 commit
-
-
NIIBE Yutaka authored
* src/gpgrt-config: Handle empty PKG_CONFIG_LIBDIR config, which should ignore --libdir option. Otherwise, prepend PKG_CONFIG_LIBDIR (instead of appending) to PKG_CONFIG_PATH. -- Suggested-by:
Andre Heinecke <aheinecke@intevation.de> Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 13 Nov, 2018 2 commits
-
-
NIIBE Yutaka authored
* src/init.c [DLL_EXPORT] (DllMain): Fix typo. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org> -
NIIBE Yutaka authored
* src/gpgrt.m4: Remove old backward compatible support. -- Since this macro gpgrt.m4 has not yet been used by any, we can break now. The gpgrt-config script is for all hosts (switching by --libdir option), it's not switched by --with-*-prefix nor SYSROOT. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 07 Nov, 2018 1 commit
-
-
NIIBE Yutaka authored
* src/spawn-w32.c (src/spawn-w32.c): Fix to use pid_to_handle. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 02 Nov, 2018 3 commits
-
-
NIIBE Yutaka authored
* src/gpgrt-config: Simplify --libdir support, remove variable substituion. * src/gpg-error.m4: Expand possible ${prefix}, ${exec_prefix} in libdir. Simplify invocation of gpgrt-config. * src/gpgrt.m4: Likewise. -- The --libdir option for configure can include variable reference like --libdir='${exec_prefix}/lib/x86_64-linux-gnu', and this expression should be expanded (the variable should be substituted) beforehand to determine if there is gpg-error.pc file or not. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org> -
NIIBE Yutaka authored
* src/gpg-error.m4: Add AC_MSG_NOTICE. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org> -
NIIBE Yutaka authored
* src/gpg-error.m4 (gpgrt_libdir): New. Bump the version date. * src/gpgrt.m4: Likewise. -- Locating gpg-error.pc file, when it's not found at target's $libdir, try system libdir defined by CC, assuming CC supports gcc compatible -print-file-name option. GnuPG-bug-id: 4239 Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 01 Nov, 2018 2 commits
-
-
NIIBE Yutaka authored
* src/gpg-error.m4: Unset GPGRT_CONFIG when gpgrt-config doesn't work. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org> -
NIIBE Yutaka authored
* src/Makefile.am (dist_bin_SCRIPTS): Add gpgrt-config. (bin_SCRIPTS): Remove gpgrt-config. -- This is the automake thing; Since gpgrt-config is not generated script, we should use dist_bin_SCRIPTS here. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 31 Oct, 2018 2 commits
-
-
Andre Heinecke authored
* src/w32-io.c (set_synchronize): Remove. (create_reader, create_writer): No need for set_synchronize. -- The set_synchronize dates back to 2001 at a time when gpgme got the Windows support on WindowsME and Windows2000. Maybe this was required then due to bugs in that old NT or partly NT based Windows versions. Removal similar to the removal in gpgme's w32-io.
-
NIIBE Yutaka authored
* src/gpgrt-config: Add missing $ for libdir_option. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 29 Oct, 2018 1 commit
-
-
NIIBE Yutaka authored
* configure.ac: Don't generate gpgrt-config. * src/gpgrt-config: Rename from gpgrt-config.in. (--prefix, --exec-prefix, --libdir): Use --libdir to determine PKG_CONFIG_LIBDIR. * src/Makefile.am (EXTRA_DIST): Remove gpgrt-config.in. * src/gpg-error-config-test.sh: Fix for path to gpgrt-config. * src/gpg-error.m4: Provide --prefix, --exec-prefix, --libdir option from configure. Don't use CC because we have --libdir. Bump version date. * src/gpgrt.m4: Likewise. -- Considering multilib support as well as multiarch support, it is better to provide the information for PKG_CONFIG_LIBDIR by --libdir directly, instead of CC. Difficulty is that configure allows variable reference like: --libdir='${exec_prefix}/i386-linux' So, it should also support --prefix and --exec_prefix options. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 27 Oct, 2018 1 commit
-
-
Ben Kibbey authored
* src/b64dec.c (_gpgrt_b64dec_finish): Use xfree(). Signed-off-by:Ben Kibbey <bjk@luxsci.net>
-
- 26 Oct, 2018 2 commits
-
-
NIIBE Yutaka authored
* src/gpgrt-config.in: Fix copyright notice. (--exists): Support new option of pkg-config. (--mt): Relax usage. (--api-version): Support old option. (default_module): New. (usage): Only show pkg-config compatible options. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org> -
NIIBE Yutaka authored
* src/gpg-error.m4: Don't assume newer implementation of gpg-error-config. Use old way when it found old. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 25 Oct, 2018 2 commits
-
-
NIIBE Yutaka authored
* configure.ac: Generate gpgrt-config from gpgrt-config.in. * src/gpgrt-config.in: Rename from src/gpg-error-config-new.in. * src/Makefile.am (bin_SCRIPTS): Add gpgrt-config. (EXTRA_DIST): Add gpgrt-config.in removing gpg-error-config-new.in. (BUILT_SOURCES, CLEANFILES): Remove gpgrt-config. (gpg-error-config): Always copy from gpg-error-config-old. * src/gpg-error-config-test.sh: Follow the rename. -- The gpgrt-config script is new implementation supporting *.pc file, while gpg-error-config keeps old single shell script. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org> -
NIIBE Yutaka authored
* src/gpg-error.m4: Detect gpgrt-config to set GPGRT_CONFIG. -- Set GPGRT_CONFIG when there is no gpg-error-config or gpg-error-config reports version >= 1.33. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-