Page MenuHome GnuPG
Feed Advanced Search

Nov 25 2020

gniibe added a comment to T5151: GPGME++ : bad passphrase problems.

My excuse: Please note that the support of exporting secret keys by GPGME are relatively new feature (see {T5046) and the fix rM3382ecb17eb5: core: Support exporting secret keys.). The fix of rM53ac732bae46: core: Call _gpgme_passphrase_status_handler when exporting keys. is a part of the support.
I think that we need more fixes for gpg/gpgme to be fully working well.

Nov 25 2020, 12:51 AM · segv, gpgme, Bug Report

Nov 24 2020

nmset added a comment to T5151: GPGME++ : bad passphrase problems.

when passphrase is wrong, the passphrase callback is called more than one time (one for primary key, and another for a subkey, more if there are more subkeys).

Nov 24 2020, 9:30 AM · segv, gpgme, Bug Report
gniibe added a comment to T5151: GPGME++ : bad passphrase problems.

Currently, gpg doesn't report any errors to status line for exporting secret keys. If needed, a patch like this is needed:

Nov 24 2020, 8:12 AM · segv, gpgme, Bug Report
gniibe added a comment to T5151: GPGME++ : bad passphrase problems.

Chasing this bug, I pushed a change: rM53ac732bae46: core: Call _gpgme_passphrase_status_handler when exporting keys.

Nov 24 2020, 7:08 AM · segv, gpgme, Bug Report

Nov 23 2020

ikloecker added a comment to T5151: GPGME++ : bad passphrase problems.
In T5151#139353, @nmset wrote:

Using Context::setExpire(), expiry time of keys and subkeys can be changed in a predictable way, with good and bad passphrase (fails with error of course).

Nov 23 2020, 12:30 PM · segv, gpgme, Bug Report
nmset added a comment to T5151: GPGME++ : bad passphrase problems.

I highly recommend to use the new ChangeExpiryJob instead of the fragile (and apparently buggy) edit interactor.

Nov 23 2020, 11:56 AM · segv, gpgme, Bug Report
nmset added a comment to T5151: GPGME++ : bad passphrase problems.

Can you try if using the overload

Nov 23 2020, 11:06 AM · segv, gpgme, Bug Report
ikloecker added a comment to T5151: GPGME++ : bad passphrase problems.

Can you try if using the overload

Error Context::exportPublicKeys(const char *patterns[], Data &keyData, unsigned int flags)

which takes an array of patterns instead of a single pattern also crashes?

Nov 23 2020, 10:15 AM · segv, gpgme, Bug Report
ikloecker added a comment to T5151: GPGME++ : bad passphrase problems.

Unless you need some special features of GpgSetExpiryTimeEditInteractor or you have to support gpgme <1.15, I highly recommend to use the new ChangeExpiryJob instead of the fragile (and apparently buggy) edit interactor.

Nov 23 2020, 10:06 AM · segv, gpgme, Bug Report

Nov 22 2020

werner triaged T5151: GPGME++ : bad passphrase problems as High priority.
Nov 22 2020, 10:22 AM · segv, gpgme, Bug Report

Nov 20 2020

lovetox updated the task description for T5149: Incorrect error handling in export_key_minimal().
Nov 20 2020, 9:29 PM · Python, gpgme, Bug Report
werner triaged T5149: Incorrect error handling in export_key_minimal() as Normal priority.
Nov 20 2020, 9:19 AM · Python, gpgme, Bug Report

Nov 19 2020

lovetox updated the task description for T5149: Incorrect error handling in export_key_minimal().
Nov 19 2020, 11:17 PM · Python, gpgme, Bug Report
lovetox created T5149: Incorrect error handling in export_key_minimal().
Nov 19 2020, 11:16 PM · Python, gpgme, Bug Report

Nov 18 2020

ikloecker closed T5142: Qt gpgme's sign_key function should not set a remark with an empty string as Resolved.

Fixed. Workaround for gpgme 1.15 (and earlier) implemented in Kleopatra: Do not call setRemark() with an empty QString.

Nov 18 2020, 1:55 PM · gpgme, qt, Bug Report
ikloecker added a comment to T5142: Qt gpgme's sign_key function should not set a remark with an empty string.

I think Kleopatra is affected. It calls setRemark() on the job unconditionally with the text from the widget, and I'm pretty sure that this text is empty but not a null QString, if the user doesn't enter a remark.

Nov 18 2020, 12:24 PM · gpgme, qt, Bug Report
werner assigned T5142: Qt gpgme's sign_key function should not set a remark with an empty string to ikloecker.

Ingo, can you please check? I guess we are not affected because Kleo already checks for an empty string. But dkg's suggestion sounds good to me.

Nov 18 2020, 10:34 AM · gpgme, qt, Bug Report
dkg created T5142: Qt gpgme's sign_key function should not set a remark with an empty string.
Nov 18 2020, 9:38 AM · gpgme, qt, Bug Report

Nov 13 2020

gniibe closed T5074: Leaking fd as Resolved.
Nov 13 2020, 7:17 AM · Restricted Project, gpgme, Bug Report
gniibe closed T4688: `make distcheck` fails trying to make `rst/gpgme-python-howto.rst` as Resolved.
Nov 13 2020, 7:17 AM · Restricted Project, gpgme, Bug Report

Nov 12 2020

gniibe added a comment to T4800: python-gpgme signature revokation assertion error: `gpg->cmd.code' failed.

Thanks for your report, but your excerpt is irrelevant.

Nov 12 2020, 9:11 AM · gpgme, Bug Report
gniibe closed T5046: Exporting secret keys via gpgme as Resolved.

Push the change.

Nov 12 2020, 5:15 AM · gpgme, Bug Report
gniibe claimed T5046: Exporting secret keys via gpgme.

Thank you.

Nov 12 2020, 5:10 AM · gpgme, Bug Report

Nov 11 2020

werner created T5131: Release GPGME 1.15.0.
Nov 11 2020, 5:08 PM · gpgme, Release Info

Oct 28 2020

gniibe closed T5075: [python-gpgme] Traceback when running with python -OO as Resolved.

Pushed the change.

Oct 28 2020, 12:51 AM · gpgme, Python, Bug Report
gniibe claimed T5075: [python-gpgme] Traceback when running with python -OO.
Oct 28 2020, 12:30 AM · gpgme, Python, Bug Report

Oct 27 2020

gniibe added a comment to T5075: [python-gpgme] Traceback when running with python -OO.

IIUC, fix can be like this:

diff --git a/lang/python/src/core.py b/lang/python/src/core.py
index 996c3b0f..646bbc60 100644
--- a/lang/python/src/core.py
+++ b/lang/python/src/core.py
@@ -147,7 +147,12 @@ class GpgmeWrapper(object):
                     gpgme.gpg_raise_callback_exception(slf)
                 return result
Oct 27 2020, 8:31 AM · gpgme, Python, Bug Report

Oct 3 2020

werner closed T5088: gpgme-1-13-1 test failure and errors and build errors as Resolved.
Oct 3 2020, 7:55 PM · gpgme, toolchain, Bug Report

Oct 1 2020

gniibe changed the status of T5074: Leaking fd from Open to Testing.
Oct 1 2020, 4:21 AM · Restricted Project, gpgme, Bug Report
gniibe claimed T5074: Leaking fd.

Good catch. Thank you.

Oct 1 2020, 4:18 AM · Restricted Project, gpgme, Bug Report
gniibe accepted D508: Close unused fd.
Oct 1 2020, 4:18 AM · gpgme

Sep 26 2020

despair created D508: Close unused fd.
Sep 26 2020, 9:23 AM · gpgme

Sep 18 2020

mathieui created T5075: [python-gpgme] Traceback when running with python -OO.
Sep 18 2020, 5:11 PM · gpgme, Python, Bug Report
despair created T5074: Leaking fd.
Sep 18 2020, 8:29 AM · Restricted Project, gpgme, Bug Report

Sep 7 2020

bernhard renamed T5046: Exporting secret keys via gpgme from Exporting secret keys to Exporting secret keys via gpgme.
Sep 7 2020, 10:17 AM · gpgme, Bug Report

Sep 5 2020

dblouis added a comment to T5046: Exporting secret keys via gpgme.

The following patch make it work:

Sep 5 2020, 7:35 PM · gpgme, Bug Report
dblouis updated the task description for T5046: Exporting secret keys via gpgme.
Sep 5 2020, 7:03 PM · gpgme, Bug Report

Sep 2 2020

dblouis updated the task description for T5046: Exporting secret keys via gpgme.
Sep 2 2020, 5:41 PM · gpgme, Bug Report
dblouis created T5046: Exporting secret keys via gpgme.
Sep 2 2020, 5:30 PM · gpgme, Bug Report

Aug 29 2020

werner added a comment to T5037: dn.cpp:181: suspicious loop.

FWIW, here an example of warnings we use. Yes it starts with -Wall but there are a couple of more specific warnings and at a few places we even use pragmas to disable warnings. And it depends on the compiler version used.

Aug 29 2020, 5:16 PM · gnupg, gpgme, Bug Report

Aug 28 2020

dcb added a comment to T5037: dn.cpp:181: suspicious loop.

-Wall is not a good idea in general because it is too unspecific. This is why we have a list of useful warning and >warnings we ignore with gcc.

Aug 28 2020, 7:53 PM · gnupg, gpgme, Bug Report
werner added a comment to T5037: dn.cpp:181: suspicious loop.

-Wall is not a good idea in general because it is too unspecific. This is why we have a list of useful warning and warnings we ignore with gcc.

Aug 28 2020, 12:43 PM · gnupg, gpgme, Bug Report
dcb added a comment to T5037: dn.cpp:181: suspicious loop.

I found the bug by compiling the package with C/C++ compiler clang and flag -Wall.

Aug 28 2020, 9:32 AM · gnupg, gpgme, Bug Report
werner closed T5037: dn.cpp:181: suspicious loop as Resolved.

Fixed in gnupg and gpgme. it is not serious because that is just a failsafe check; libksba creates these strings and it does it correctly.

Aug 28 2020, 9:15 AM · gnupg, gpgme, Bug Report
werner added a project to T5037: dn.cpp:181: suspicious loop: gnupg.

We have the same flaw in gnupg.

Aug 28 2020, 9:00 AM · gnupg, gpgme, Bug Report
werner claimed T5037: dn.cpp:181: suspicious loop.
Aug 28 2020, 8:54 AM · gnupg, gpgme, Bug Report
gniibe added a project to T5037: dn.cpp:181: suspicious loop: gpgme.
Aug 28 2020, 3:06 AM · gnupg, gpgme, Bug Report

Aug 14 2020

ikloecker changed the status of T4395: Kleopatra: Missing error handling when changing expiry from Open to Testing.

Fixed.

Aug 14 2020, 12:01 PM · gpa, gnupg, gpgme, gpg4win, kleopatra

Aug 13 2020

ikloecker claimed T4395: Kleopatra: Missing error handling when changing expiry.

Taking: Still does not work although now --quick-set-expire is used by gpgme.

Aug 13 2020, 4:47 PM · gpa, gnupg, gpgme, gpg4win, kleopatra
werner closed T4793: New GPGME API to support card personalization as Wontfix.

We won't do such a interface now.

Aug 13 2020, 3:22 PM · scd, gpgme

Aug 12 2020

ikloecker changed the status of T5003: GpgME++: Add support for gpgme_set_expire, a subtask of T4999: GPGME: Add interface for quick-set-expire, from Open to Testing.
Aug 12 2020, 12:28 PM · gpgme, kleopatra, gpg4win

Aug 6 2020

aheinecke closed T4999: GPGME: Add interface for quick-set-expire as Resolved.

Thanks. rMdb82e99 resolved this.

Aug 6 2020, 10:18 AM · gpgme, kleopatra, gpg4win
aheinecke lowered the priority of T4854: gpgme 1.13.1: test suite is failing from Normal to Low.

I just ran the test suite ~10 Times with -j48 on a 12 core machine and cannot reproduce this at all with GnuPG-2.2.21 and gpgme-1.14.0 so I tend to put this on resolved, otherwise this is a candidate for an issue that will be indefinetly in the tracker which we cannot reproduce or analyze further.

Aug 6 2020, 10:12 AM · gpgme, Bug Report
aheinecke triaged T4854: gpgme 1.13.1: test suite is failing as Normal priority.

The t-json failure is: T4820

Aug 6 2020, 10:02 AM · gpgme, Bug Report
aheinecke closed T5013: OS X 10.11 and error: use of undeclared identifier 'getenv' as Resolved.
Aug 6 2020, 9:59 AM · gpgme, Bug Report
aheinecke added a comment to T5013: OS X 10.11 and error: use of undeclared identifier 'getenv'.

Thanks, I've applied this with an explicit include to <cstdlib> it was not required on Linux and Windows but I think it's better not to rely on internal libc++ include chains.

Aug 6 2020, 9:54 AM · gpgme, Bug Report
gniibe added a comment to T5013: OS X 10.11 and error: use of undeclared identifier 'getenv'.

Thanks for your report.

Aug 6 2020, 5:59 AM · gpgme, Bug Report

Aug 5 2020

JW added a comment to T5013: OS X 10.11 and error: use of undeclared identifier 'getenv'.

According to OS X 10.9 man pages for getenv(3) (10.9 is what I have available), the source file editinteractor.cpp should include <stdlib.h>. Since its a c++ source file, I believe the include of interest is <cstdlib>. The man page also says the link library is -lc.

Aug 5 2020, 7:57 PM · gpgme, Bug Report
JW updated the task description for T5013: OS X 10.11 and error: use of undeclared identifier 'getenv'.
Aug 5 2020, 7:55 PM · gpgme, Bug Report
JW created T5013: OS X 10.11 and error: use of undeclared identifier 'getenv'.
Aug 5 2020, 7:53 PM · gpgme, Bug Report

Jul 27 2020

aheinecke added a comment to T4999: GPGME: Add interface for quick-set-expire.

Phabricator allows it again to upload patches. It's D507

Jul 27 2020, 3:46 PM · gpgme, kleopatra, gpg4win
aheinecke created D507: core: Add gpgme_op_set_expire.
Jul 27 2020, 3:45 PM · gpgme
aheinecke added a revision to T4999: GPGME: Add interface for quick-set-expire: D507: core: Add gpgme_op_set_expire.
Jul 27 2020, 3:45 PM · gpgme, kleopatra, gpg4win
aheinecke added a subtask for T4999: GPGME: Add interface for quick-set-expire: T5003: GpgME++: Add support for gpgme_set_expire.
Jul 27 2020, 2:52 PM · gpgme, kleopatra, gpg4win

Jul 17 2020

werner closed T4310: GPGME: Add ssh export mode as Resolved.

C++ interface is also availabale in 1.14.0 (see rM690d967196d9).

Jul 17 2020, 12:06 PM · gpgme (gpgme 1.23.x), Feature Request
werner closed T4820: gpgme's json test fails with gpg 2.2.19 as Resolved.
Jul 17 2020, 11:41 AM · gpgme (gpgme 1.23.x), Bug Report
werner closed T4996: Release GPGME 1.14.0 as Resolved.
Jul 17 2020, 11:25 AM · gpgme, Release Info
werner updated the task description for T4996: Release GPGME 1.14.0.
Jul 17 2020, 11:01 AM · gpgme, Release Info
aheinecke created T4999: GPGME: Add interface for quick-set-expire.
Jul 17 2020, 9:53 AM · gpgme, kleopatra, gpg4win

Jul 16 2020

werner created T4996: Release GPGME 1.14.0.
Jul 16 2020, 5:13 PM · gpgme, Release Info
werner added a project to T3957: GPGME: mkdefsinc segfaults on windows: unreproducible.
Jul 16 2020, 3:29 PM · unreproducible, toolchain, Documentation, Windows, gpgme
werner closed T3957: GPGME: mkdefsinc segfaults on windows as Invalid.

No info received

Jul 16 2020, 3:27 PM · unreproducible, toolchain, Documentation, Windows, gpgme
werner added a project to T3794: GPGME: Make it possible to switch trust model per context: Feature Request.
Jul 16 2020, 3:21 PM · Feature Request, gpgol, gpgme
werner closed T3515: Gpg4win: Gpgconf used to open "windows" and slows down kleo startup as Resolved.

I am not any longer interested to see the real cause; eventually we will replace it anyway with a modern CreateProcess.

Jul 16 2020, 3:19 PM · Windows, gpgme
werner closed T3512: gpgme test failure when run with gpg version 1 as Invalid.

Reconsidering this: Running the test suite with gpg1 is not a proper use case. gpg1 may be installed in addition to gpg but it should never be used on a build machine solely.

Jul 16 2020, 3:09 PM · gnupg (gpg14), gpgme, Bug Report
werner lowered the priority of T3512: gpgme test failure when run with gpg version 1 from Normal to Low.
Jul 16 2020, 3:07 PM · gnupg (gpg14), gpgme, Bug Report
werner closed T3413: gpgme_op_delete doesn't return failure when loopback mode is enabled as Wontfix.
Jul 16 2020, 2:53 PM · gpgme, Bug Report
werner closed T3396: use swig to generate Ruby bindings for gpgme as Wontfix.

As of today we don't want to maintain another binding; see T3395

Jul 16 2020, 2:52 PM · Feature Request, gpgme
werner closed T3395: use swig to generate Perl bindings for gpgme as Wontfix.

The Python bindings are troublesome enough; as of today we don't want to maintain a Perl module.

Jul 16 2020, 2:51 PM · Feature Request, gpgme
werner closed T3356: gpgme test suite failure in lang/qt/tests/t-config.cpp on mipsel as Invalid.

No info received in3 years.

Jul 16 2020, 2:49 PM · Too Old, gpgme, Bug Report
werner closed T3348: gpgsm: should default to --disable-crl-checks as Wontfix.
Jul 16 2020, 2:45 PM · gpgme, gnupg, S/MIME
werner moved T3272: Make groups available through GPGME from Backlog to For a future release on the gpgme board.
Jul 16 2020, 2:43 PM · gpgme, Feature Request
werner added a parent task for T2919: fix gpgme/gpgsm pipe server session with use_descriptor_passing (was: mutt + gpgme problems with some Outlook S/MIME emails): T4257: GPGME: op_verify failes for S/MIME with EBADF in multithreaded signature verification.
Jul 16 2020, 2:42 PM · gpgme, Bug Report
werner added a subtask for T4257: GPGME: op_verify failes for S/MIME with EBADF in multithreaded signature verification: T2919: fix gpgme/gpgsm pipe server session with use_descriptor_passing (was: mutt + gpgme problems with some Outlook S/MIME emails).
Jul 16 2020, 2:42 PM · S/MIME, gpgme
werner closed T4028: GPGME: Subkeys not marked correcly as secret as Resolved.

Has already been fixed with T4061.

Jul 16 2020, 2:40 PM · gpgme
werner lowered the priority of T4195: Fix time API in gpgme from Normal to Low.
Jul 16 2020, 2:38 PM · gnupg, kleopatra, gpgme, Feature Request
werner moved T4310: GPGME: Add ssh export mode from Backlog to QA for next release on the gpgme board.
Jul 16 2020, 2:36 PM · gpgme (gpgme 1.23.x), Feature Request
werner reassigned T4310: GPGME: Add ssh export mode from werner to aheinecke.

C part done; C++ interface is not yet done.

Jul 16 2020, 2:35 PM · gpgme (gpgme 1.23.x), Feature Request
kloczek added a comment to T4854: gpgme 1.13.1: test suite is failing.

Today when I've been trying with -j48 test suite was locked and was not able to finish.
When I've presses ctrol-c I found:

PASS: t-eventloop
Decrypt B 0
Encrypt A 0
Decrypt B 1
Encrypt A 1
Decrypt B 2
Encrypt A 2
Decrypt B 3
Encrypt A 3
Decrypt B 4
Decrypt B 5
Encrypt A 4
Decrypt B 6
Encrypt A 5
Decrypt B 7
Encrypt A 6
Decrypt B 8
Encrypt A 7
Decrypt B 9
Encrypt A 8
Decrypt B 10
Encrypt A 9
Decrypt B 11
Encrypt A 10
Decrypt B 12
Encrypt A 11
Decrypt B 13
Encrypt A 12
Decrypt B 14
Encrypt A 13
Decrypt B 15
Encrypt A 14
Decrypt B 16
Decrypt B 17
Encrypt A 15
Decrypt B 18
Encrypt A 16
Decrypt B 19
Encrypt A 17
Encrypt A 18
Encrypt A 19
PASS: t-thread1
make[4]: *** [Makefile:882: check-TESTS] Interrupt
make[4]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gpgme-1.13.1/tests/gpg'
[tkloczko@barrel SPECS]$ make[3]: *** [Makefile:1008: check-am] Interrupt
make[2]: *** [Makefile:1010: check] Interrupt
make[1]: *** [Makefile:736: check-recursive] Interrupt
make: *** [Makefile:535: check-recursive] Interrupt
^C
Jul 16 2020, 12:55 AM · gpgme, Bug Report
kloczek added a comment to T4854: gpgme 1.13.1: test suite is failing.
+ GPGME_DEBUG=8:gpgme.trc
+ /usr/bin/make -O -j1 V=1 VERBOSE=1 check
Making check in src
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gpgme-1.13.1/src'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/gpgme-1.13.1/src'
Making check in tests
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gpgme-1.13.1/tests'
Making check in gpg
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gpgme-1.13.1/tests/gpg'
/usr/bin/make  check-am
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gpgme-1.13.1/tests/gpg'
/usr/bin/make  check-TESTS
make[4]: Entering directory '/home/tkloczko/rpmbuild/BUILD/gpgme-1.13.1/tests/gpg'
gpg-agent already running
PASS: initial.test
-----BEGIN PGP MESSAGE-----
Jul 16 2020, 12:52 AM · gpgme, Bug Report

Jul 15 2020

werner added a comment to T4854: gpgme 1.13.1: test suite is failing.

It might be related to T4257 - try with -j4 for now which is what I use for building.
For further investigations we need to enable tracing using

GPGME_DEBUG=8:gpgme.trc  make check
Jul 15 2020, 11:03 PM · gpgme, Bug Report
werner claimed T4310: GPGME: Add ssh export mode.
Jul 15 2020, 6:27 PM · gpgme (gpgme 1.23.x), Feature Request
kloczek added a comment to T4854: gpgme 1.13.1: test suite is failing.

Sorry, I can't replicate this

Jul 15 2020, 5:23 PM · gpgme, Bug Report
werner moved T4578: python3 gpg module should offer an "encrypt" function that takes an email.message.EmailMessage and returns a new one from Backlog to Python stuff on the gpgme board.
Jul 15 2020, 4:55 PM · gpgme, Python, Feature Request
werner merged T4650: Kleopatra crashed with an application error (Windows) into T4257: GPGME: op_verify failes for S/MIME with EBADF in multithreaded signature verification.
Jul 15 2020, 4:53 PM · S/MIME, gpgme
werner merged task T4650: Kleopatra crashed with an application error (Windows) into T4257: GPGME: op_verify failes for S/MIME with EBADF in multithreaded signature verification.
Jul 15 2020, 4:53 PM · gpgme, kleopatra, Bug Report, gpg4win
werner added a comment to T4650: Kleopatra crashed with an application error (Windows).

Probably the same as T4257

Jul 15 2020, 4:52 PM · gpgme, kleopatra, Bug Report, gpg4win
werner moved T4820: gpgme's json test fails with gpg 2.2.19 from Backlog to QA for next release on the gpgme board.
Jul 15 2020, 4:46 PM · gpgme (gpgme 1.23.x), Bug Report
werner closed T4982: [PATCH] qt libraries should be linked with -fPIC instead of -fpic as Wontfix.

We can't do anything about it except for corner cases which we won't do right now. In case there will be an easy solution to help Debian please re-open this bug.

Jul 15 2020, 4:45 PM · Debian, gpgme
werner moved T4257: GPGME: op_verify failes for S/MIME with EBADF in multithreaded signature verification from Backlog to For a future release on the gpgme board.
Jul 15 2020, 4:42 PM · S/MIME, gpgme