- 13 Jun, 2019 4 commits
-
-
Werner Koch authored
* configure.ac: Bump LT versions to c=C33/A22/R1 cpp=C16/A10/R0 qt=C10/A3/R4. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* lang/python/tests/t-decrypt-verify.py: Comment recent changes. -- Fixes-commit: bd2d282e GnuPG-bug-id: 4276
-
Werner Koch authored
* lang/python/tests/Makefile.am (gpg.conf): Set a default key. -- It seems we need to set a default key because at least t-sign.py does not specify the key to use and we do not want to rely on the order of keys in the keyring. Also Fixes-commit: f3ca2c9c gpg 2.0 is end-of-life and we don't need these extra options anymore. In fact they for the use of some gpg version and don't use the version gpgconf knows about. This also aligns the python tests to what we use for the C test suite. Signed-off-by:
Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/debug.c (_gpgme_debug_buffer): Switch between two output formats. -- The new format is much more practical than the bunch of hex digits followed by just 16 ascii chars. To get the old behaviour use a debug level of 10. Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 06 Jun, 2019 4 commits
-
-
Werner Koch authored
* tests/run-threaded.c (random_data_close): Correct FD test. -- An invalid DS is -1 and not 0; this fix is for correctness and does not chnage anything in the real world. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/posix-io.c (_gpgme_is_fd_valid): New out-commented function. -- This code is sometimes useful to track down invalid file descriptors. We keep it commented in the code. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/wait.c (_gpgme_run_io_cb): Fix return code. -- The function needs to return an gpg_error_t and not ERRNO. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Andre Heinecke authored
* tests/run-threaded.c (main): Handle allow-del. (allow-del): New. Variable to allow deletion of keys. (import): Delete key after import if allow-del is set. (delete_impres): Delete keys from an import result. (delete_fpr): Delete a key by fingerprint. -- This is intended to test write access and locking of the keyring by repeatedly importing and deleting pubkeys. It is an option because it might cause keyring corruption etc. so it should be explicitly enabled.
-
- 05 Jun, 2019 7 commits
-
-
Andre Heinecke authored
* tests/run-threaded.c (import): New. (do_data_op): Call it.
-
Werner Koch authored
* src/debug.c (_gpgme_debug): Take better care of NULL userinfo. (_gpgme_debug_end): Rework. (_trace_sysres): Print ERRNO and not the supplied RES. -- The TRACE_SYSRES patch fixes Regression-due-to: 7a1e7006 Signed-off-by:
Werner Koch <wk@gnupg.org>
-
Andre Heinecke authored
* tests/run-threaded.c (do_data_op): Use synced out macro.
-
Andre Heinecke authored
* tests/run-threaded.c (decrypt, verify): Don't use a variable name that is also a macro. -- It just looks confusing and strange at first glance.
-
Andre Heinecke authored
* tests/run-threaded.c (create_thread): Check proper return value and not return value of CloseHandle.
-
Werner Koch authored
* src/debug.c (_gpgme_debug): Add arg LINE. Chnage all callers. (_gpgme_debug_begin): Remove. * src/debug.h (TRACE_SEQ): Use the LINE arg of _gpgme_debug. -- This includes chnages to always print fds in decimal as weel as tweaking the TARCE_SEQ function to make use of the new machinery. The standard 'tag' can now always be NULL and no tag information will be printed. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/debug.c (debug_lock): Remove. Also remove all users. (_gpgme_debug): Use gpgrt_bsprintf to prepare the output and finally print using standard fprintf. Reformat to prefix to be narrower. -- Note that the locks are now implicitly done using the systems stdio. The threadid is now printed with 4 digits in hex and thus without the angle brackets and the 0x. However it is still a hex number even if it may look like an octal number. The hex letters are uppercase to make searching in locks easier iff the threadid happens to have a letter in it. Signed-off-by:Werner Koch <wk@gnupg.org>
-
- 04 Jun, 2019 5 commits
-
-
Werner Koch authored
* src/cJSON.c (print_number): Print NaN and INF. -- GnuPG-bug-id: 4328 Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/cJSON.c: Include stdint.h. (parse_number): Avoid overflob in SUBSCALE and cap integer values. -- GnuPG-bug-id: 4330 Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/engine-gpg.c (append_args_from_recipients_string): Detect bad options. * src/engine-gpgsm.c (set_recipients_from_string): Implement option parsing. -- The only option we actually implement is "--" but the code layout is now very simlar to engine-gpg and can easily be extended if ever needed. Signed-off-by:Werner Koch <wk@gnupg.org>
-
Werner Koch authored
* src/engine-gpgsm.c (gpgsm_encrypt): Fix argument check. -- It is pretty obvious thar the string based new encrypt function has never been tested for S/MIME. The fix was easy. A followup patch will extend it to allow for keywords in the future. GnuPG-bug-id: 4556 Fixes-commit: a1f76b3b Signed-off-by:
Werner Koch <wk@gnupg.org>
-
NIIBE Yutaka authored
* lang/python/src/errors.py (DecryptionError): Rename from DeryptionError. (UnsupportedAlgorithm): Use DecryptionError. -- GnuPG-bug-id: 4478 Reported-by: Jan Girlich Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 03 Jun, 2019 1 commit
-
-
Andre Heinecke authored
* NEWS: Add news for 1.13.1 --
-
- 06 May, 2019 3 commits
-
-
Andre Heinecke authored
* configure.ac: Configure new Makefiles. * lang/python/Makefile.am: Remove dirs from extra dist and use subdirs. * lang/python/examples/Makefile.am, lang/python/src/Makefile.am, lang/python/doc/Makefile.am: New. Files that list EXTRA_DIST files. -- This is similar to what lang/js does by explicitly listing the files. This ensures that we have clean distribution tarballs without accidentall additions that just lay in the directory. GnuPG-Bug-Id: T4481
-
Andre Heinecke authored
* lang/python/src/core.py (Context): Retab and shorten max line length.
-
Andre Heinecke authored
-
- 03 May, 2019 6 commits
-
-
Andre Heinecke authored
* configure.ac (CFLAGS): Move -Wno flags out of the maintainer mode. -- It makes sense to have more warnings in maintainer mode and not more warnings in release builds. GnuPG-Bug-Id: T4477
-
Andre Heinecke authored
* lanc/cpp/src/gpggencardkeyinteractor.cpp (GpgGenCardKeyInteractor::Private): Fix initialization warning.
-
Daniel Kahn Gillmor authored
* src/core.py (decrypt): filter out signatures with errors from the returned verify_result, but avoid raising BadSignatures * tests/t-decrypt-verify.py: ensure that only a single signature is returned when evaluating cipher-3.asc, since the other signature is unknown. -- This change preserves the invariant that decrypt() only ever returns valid signatures in the verify_result, but it avoids unnecessary errors in the face of the presence of an additional bad signature. GnuPG-bug-id: 4276 Signed-off-by:
Daniel Kahn Gillmor <dkg@fifthhorseman.net> -
Daniel Kahn Gillmor authored
* lang/python/tests/t-decrypt.py: test decryption of cipher-3.asc and cipher-no-sig.asc * lang/python/tests/t-decrypt-verify.py: test decryption and verification of cipher-3.asc and cipher-no-sig.asc -- note that this introduces a failed test -- decrypt-verify.py misbehaves on cipher-3.asc by throwing a BadSignature even though GnuPG-bug-id: 4276 Signed-off-by:
Daniel Kahn Gillmor <dkg@fifthhorseman.net> -
Daniel Kahn Gillmor authored
* tests/gpg/cipher-3.asc: add an encrypted file containing signatures (one from a known key, and one from an unknown key) * tests/gpg/cipher-no-sig.asc: add an encrypted file containing no signatures at all -- We currently aren't using these files yet, but they should be useful for exercising the library in unusual circumstances (where the bugs are). Signed-off-by:
Daniel Kahn Gillmor <dkg@fifthhorseman.net> -
Daniel Kahn Gillmor authored
* lang/python/tests/Makefile.am: prefer py_tests from the environment if present. -- I'm trying to make it nicer/quicker to hack on the testsuite for python bindings. With this change, if you're improving the python bindings test suite, you can selectively run only a few specific tests like so: lang/python$ make check py_tests='t-decrypt.py t-decrypt-verify.py' Signed-off-by:
Daniel Kahn Gillmor <dkg@fifthhorseman.net>
-
- 02 May, 2019 1 commit
-
-
Andre Heinecke authored
* tests/run-import.c (show_usage): Add doc for cms / openpgp. (main): Handle protocol.
-
- 24 Apr, 2019 1 commit
-
-
Andre Heinecke authored
* lang/cpp/src/context.cpp (setGlobalFlag): New. * lang/cpp/src/global.h (setGlobalFlag): Export it. -- GnuPG-Bug-Id: T4471
-
- 19 Apr, 2019 2 commits
-
-
NIIBE Yutaka authored
* src/engine-gpgsm.c [!USE_DESCRIPTOR_PASSING] (gpgsm_new): Remove last call to _gpgme_io_set_close_notify. -- It is called just after the code in question for all cases. GnuPG-bug-id: 4456 Fixes-commit: dd21ec99 Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org> -
NIIBE Yutaka authored
* src/engine.c (_gpgme_set_engine_info): Add error return. Signed-off-by:
NIIBE Yutaka <gniibe@fsij.org>
-
- 09 Apr, 2019 4 commits
-
-
Andre Heinecke authored
* src/w32-util.c (_gpgme_create_process_utf8): Free converted startup info strings.
-
Andre Heinecke authored
* src/w32-util.c (_gpgme_access): Respect mode parameter. (_gpgme_create_process_utf8): Convert startupinfo, too. -- This both did not show up in testing as we only use mode F_OK and STARTUPINFOA is basically the same as STARTUPINFOW. Fixes commit: a82e3a0a GnuPG-Bug-Id: T4453
-
Andre Heinecke authored
* src/dirinfo.c (get_gpgconf_item): Use _gpgme_access. * src/posix-util.c (_gpgme_access): Add forward to normal access. * src/sys-util.h (_gpgme_access): New for posix and w32. * src/w32-io.c (_gpgme_io_spawn): Use _gpgme_crate_process_utf8. * src/w32-util.c (utf8_to_wchar, utf8_to_wchar0): The usual w32 conv. (find_program_in_dir): Use _gpgme_access. (find_program_at_standard_place): Use wchar API and convert to UTF-8. (_gpgme_access): Convert UTF-8 to wchar and use wchar API. (_gpgme_create_process_utf8): Convert UTF-8 to wchar and use wchar API. -- While we should not say that we have full support for unicode path installations of GnuPG, this ensures that GPGME works if GPGME itself is installed in a unicode path. e.g.: Libreoffice supports this. GnuPG-Bug-Id: T4453 Based on a patch provided by Egor Pugin. Thanks.
-
Andre Heinecke authored
* src/w32-io.c (_gpgme_io_spawn): Show MessageBox only once. -- This prevents multiple message boxes from showing when the GPGME installation is unworkable. GnuPG-Bug-Id: T4453
-
- 27 Mar, 2019 2 commits
-
-
Andre Heinecke authored
* src/debug.c (_gpgme_debug): Use gpgrt_vasprintf instead of vfprintf to have a more portable format. -- This fixes crashes on Windows because "%zu" is used which is not natively supported on Windows but which gpgrt supports.
-
Andre Heinecke authored
* src/assuan-support.c (my_spawn): Zero is a perfectly fine fd.
-