1. 13 Jun, 2019 4 commits
  2. 06 Jun, 2019 4 commits
  3. 05 Jun, 2019 7 commits
  4. 04 Jun, 2019 5 commits
  5. 03 Jun, 2019 1 commit
  6. 06 May, 2019 3 commits
  7. 03 May, 2019 6 commits
    • Andre Heinecke's avatar
      Always use maintainer mode -Wno cflags · 33b13d1c
      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
      33b13d1c
    • Andre Heinecke's avatar
      cpp: Fix initialization warning · 0ed81498
      Andre Heinecke authored
      * lanc/cpp/src/gpggencardkeyinteractor.cpp
      (GpgGenCardKeyInteractor::Private): Fix initialization warning.
      0ed81498
    • Daniel Kahn Gillmor's avatar
      python: stop raising BadSignatures from decrypt(verify=True) · 4100794e
      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's avatarDaniel Kahn Gillmor <dkg@fifthhorseman.net>
      4100794e
    • Daniel Kahn Gillmor's avatar
      python/tests: try to decrypt and verify new test data · bd2d282e
      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's avatarDaniel Kahn Gillmor <dkg@fifthhorseman.net>
      bd2d282e
    • Daniel Kahn Gillmor's avatar
      tests: add two new types of encrypted data · c5c3a9d1
      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's avatarDaniel Kahn Gillmor <dkg@fifthhorseman.net>
      c5c3a9d1
    • Daniel Kahn Gillmor's avatar
      python: make it easier to run a limited number of tests · 30bd1c09
      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's avatarDaniel Kahn Gillmor <dkg@fifthhorseman.net>
      30bd1c09
  8. 02 May, 2019 1 commit
  9. 24 Apr, 2019 1 commit
  10. 19 Apr, 2019 2 commits
  11. 09 Apr, 2019 4 commits
    • Andre Heinecke's avatar
      core,w32: Fix minor potential memleak · 140d694e
      Andre Heinecke authored
      * src/w32-util.c (_gpgme_create_process_utf8): Free converted
      startup info strings.
      140d694e
    • Andre Heinecke's avatar
      core,w32: Fix new w32-util functions · ecbba12b
      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
      ecbba12b
    • Andre Heinecke's avatar
      core,w32: Improve handling of Unicode paths · a82e3a0a
      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.
      a82e3a0a
    • Andre Heinecke's avatar
      core,w32: Show w32-spawn warning only once · 937adfdc
      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
      937adfdc
  12. 27 Mar, 2019 2 commits