Page MenuHome GnuPG
Feed Advanced Search

Oct 13 2016

justus added a project to T2751: pyme.Context().get_key(fpr, secret) should have secret default to False: Python.
Oct 13 2016, 1:23 PM · gpgme, Python, Feature Request
dkg added projects to T2751: pyme.Context().get_key(fpr, secret) should have secret default to False: Feature Request, gpgme.
Oct 13 2016, 1:41 AM · gpgme, Python, Feature Request

Oct 4 2016

justus updated subscribers of T2733: alternate header directory (--includedir) isn't set in GpgmeppConfig.cmake.
Oct 4 2016, 11:14 AM · gpgme, Bug Report
justus assigned T2733: alternate header directory (--includedir) isn't set in GpgmeppConfig.cmake to aheinecke.
Oct 4 2016, 11:14 AM · gpgme, Bug Report

Oct 1 2016

RJVB added projects to T2733: alternate header directory (--includedir) isn't set in GpgmeppConfig.cmake: Bug Report, gpgme.
Oct 1 2016, 2:12 PM · gpgme, Bug Report

Sep 23 2016

justus assigned T1464: key signing in GPGME to werner.
Sep 23 2016, 12:28 PM · gpgme, Feature Request
justus added a comment to T1464: key signing in GPGME.

Fixed in 1.7 with gpgme_op_keysign.

Sep 23 2016, 12:28 PM · gpgme, Feature Request
justus closed T1464: key signing in GPGME as Resolved.
Sep 23 2016, 12:28 PM · gpgme, Feature Request

Sep 22 2016

werner removed a project from T1415: gpgme_cancel() does not stop gpg process from finishing asynchronous call: In Progress.
Sep 22 2016, 9:58 AM · gpgme, Bug Report, Debian
werner closed T1415: gpgme_cancel() does not stop gpg process from finishing asynchronous call as Resolved.
Sep 22 2016, 9:58 AM · gpgme, Bug Report, Debian
werner added a project to T1415: gpgme_cancel() does not stop gpg process from finishing asynchronous call: Unreleased.
Sep 22 2016, 9:58 AM · gpgme, Bug Report, Debian
werner added a comment to T1415: gpgme_cancel() does not stop gpg process from finishing asynchronous call.

I pushed Ueno's patches for gpgme. In particular
dee56820cabde60c43c9bf8281b8d411cb2ad644

Sep 22 2016, 9:57 AM · gpgme, Bug Report, Debian
werner added a comment to T2679: Raise error if keyring if not readable.

I agree that this is a practical problem.

Sep 22 2016, 9:55 AM · gpgme, Bug Report

Sep 21 2016

paz added a comment to T2679: Raise error if keyring if not readable.

I think it would be the right thing.

I'm developing Schleuder, the OpenPGP-featuring mailing list manager.
If I'm receiving an empty list of public keys from GPGME I currently don't know
if there are no keys, or if the keyring couldn't be read. Thus I can't properly
decide what to do: try to fetch keys? I would run into the same problem when
trying to import them. Return an error message? Which one?

This has led repeatedly to confusion e.g. when people imported a key into a
schleuder-list's keyring in the shell as root, which results in changed
ownership of the keyring-files by gpg. Next Schleuder couldn't read the keyring
anymore and maybe refused operation because it couldn't verify any incoming
email any more — instead of giving a helpful error message that points to the
cause: lacking filesystem permissions.

Currently my only chance is to manually check the permissions of all files that
might be involved in an operation. That is working around a bug, in my eyes.

Sep 21 2016, 10:08 PM · gpgme, Bug Report
werner added a comment to T2679: Raise error if keyring if not readable.

You mean you want something like EACCES instead of an empty listing? I am not
sure whether this is the right thing to do. Can please you describe your use case?

Sep 21 2016, 9:49 PM · gpgme, Bug Report
werner added a comment to T1415: gpgme_cancel() does not stop gpg process from finishing asynchronous call.

Oops; forgot to add the fix to 1.7.0

Sep 21 2016, 9:46 PM · gpgme, Bug Report, Debian
paz added a comment to T2679: Raise error if keyring if not readable.

Do you have an idea when you would try to fix this? Within the next weeks or
rather months?

Sep 21 2016, 9:26 PM · gpgme, Bug Report

Sep 14 2016

werner closed T2446: gpgme_set_armor(myctx, 0) ignored if 'armor' option is set in gpg.conf as Resolved.
Sep 14 2016, 12:51 PM · gpgme, Bug Report, Not A Bug

Sep 9 2016

paz added projects to T2679: Raise error if keyring if not readable: Bug Report, gpgme.
Sep 9 2016, 12:37 PM · gpgme, Bug Report

Aug 24 2016

werner added a comment to T2446: gpgme_set_armor(myctx, 0) ignored if 'armor' option is set in gpg.conf.

Right. Putting armor into gpg.conf is a very bad idea. Don't assume that. If
users want to shoot into their own foot, let them do so.

Aug 24 2016, 1:03 PM · gpgme, Bug Report, Not A Bug

Aug 23 2016

elvis added a comment to T2446: gpgme_set_armor(myctx, 0) ignored if 'armor' option is set in gpg.conf.

I see. So, how can I reliably know whether the output of my program is going to
be ascii or binary (to append either .asc or .gpg)? I should just assume that
'armor' will not be in gpg.conf?

Aug 23 2016, 4:52 PM · gpgme, Bug Report, Not A Bug
werner added a project to T2446: gpgme_set_armor(myctx, 0) ignored if 'armor' option is set in gpg.conf: Not A Bug.
Aug 23 2016, 4:40 PM · gpgme, Bug Report, Not A Bug
werner added a comment to T2446: gpgme_set_armor(myctx, 0) ignored if 'armor' option is set in gpg.conf.

If a user forces all output of gpg to be armored, it is not gpgme's task to
revert this.

Putting armor into gpg.conf is as bad an idea as putting encrypt into gpg.conf.

gpgme_get_armor() returns gpgme's current state.

Aug 23 2016, 4:40 PM · gpgme, Bug Report, Not A Bug

Aug 22 2016

elvis renamed T2446: gpgme_set_armor(myctx, 0) ignored if 'armor' option is set in gpg.conf from gpgme_get_armor ignores 'armor' option in gpg.conf to gpgme_set_armor(myctx, 0) ignored if 'armor' option is set in gpg.conf.
Aug 22 2016, 3:07 PM · gpgme, Bug Report, Not A Bug
elvis added projects to T2446: gpgme_set_armor(myctx, 0) ignored if 'armor' option is set in gpg.conf: Bug Report, gpgme.
Aug 22 2016, 1:27 PM · gpgme, Bug Report, Not A Bug
elvis set Version to 1.6.0 on T2446: gpgme_set_armor(myctx, 0) ignored if 'armor' option is set in gpg.conf.
Aug 22 2016, 1:27 PM · gpgme, Bug Report, Not A Bug

Aug 16 2016

werner added a comment to T2426: gpgme - Inappropriate ioctl for device.

Thanks for testing.

Aug 16 2016, 7:36 PM · Python, Fedora, Bug Report, gpgme
werner closed T2426: gpgme - Inappropriate ioctl for device as Resolved.
Aug 16 2016, 7:36 PM · Python, Fedora, Bug Report, gpgme

Aug 14 2016

techtonik added a comment to T2426: gpgme - Inappropriate ioctl for device.

I've made new container and can't repeat the bug. gpgme
components got updated in Fedora.

Aug 14 2016, 5:59 PM · Python, Fedora, Bug Report, gpgme

Aug 12 2016

aheinecke closed T2368: Integer overflow in gpgme_progress_cb arguments as Resolved.
Aug 12 2016, 6:08 PM · gpgme, Bug Report
aheinecke added a project to T2368: Integer overflow in gpgme_progress_cb arguments: Unreleased.
Aug 12 2016, 6:08 PM · gpgme, Bug Report
aheinecke added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

Added support for the newly added size-hint to gpgmepp and kleopatra. Works
nicely, although progress could update a bit more often for my taste but its soo
much better then the old "no progress at all" that I don't want to complain ;-)

Thanks!

Aug 12 2016, 6:08 PM · gpgme, Bug Report
werner removed a project from T2360: Add support for TOFU in GpgME: gnupg (gpg21).
Aug 12 2016, 11:14 AM · gnupg (gpg22), gpgme, Feature Request
werner added a project to T2360: Add support for TOFU in GpgME: gnupg (gpg22).
Aug 12 2016, 11:14 AM · gnupg (gpg22), gpgme, Feature Request

Aug 11 2016

werner claimed T2368: Integer overflow in gpgme_progress_cb arguments.
Aug 11 2016, 3:03 PM · gpgme, Bug Report
werner added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

I do not agree, but let me see what we can. A new --input-size-hint might be an
option.

Aug 11 2016, 3:03 PM · gpgme, Bug Report

Aug 10 2016

aheinecke added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

--set-filesize is used for an entirely different purpose - That it is also used
in progress is only related tothat other purpose (pre-generated OpenPGP packets
as input)

But is there any problem using it this way? I didn't see one.

If you know the file size in advance, you can pass the entire file to gpgme and
there is no need to use a pipeline.

GpgME++ provides an interface for a DataProvider class. While this is of course
inherited from Marc I find this kinda nice to use in code. If you implement the
DataProvider interface you can use that as input for GpgME.
QGpgME then provides a DataProvider for QIODevice based classes. E.g. A QFile, a
QBuffer etc. that way you can easily pass a QFile or QByteArray or a QString to
GpgME and get it encrypted. Very convenient API.

If you want a pipeline/stremaing, gpg won't
assume anything about the input file size. telling it that size is an ugly hack.

But e.g. I have a 1GB Mail I wish to decrypt, that is stored in some internal
format I know the size, but you are sugessting that I should cut out the
encrypted / signed part, save it to files and then pass the files to gpgme?

Mean while I added a Units arg to the PROGRESS status line, so that we can do
further tweaking in gpgme and won't need to mess with gnupg. Maybe we can
eventually find a solution which affects only gpgme.

Yes I've seen that and I think it might be useful but it does not solve the
problem that gnupg is not statusing the total for callback / piped operations.

If you really want a percent indication, why not using a file watcher in Kleo
and stat(2) the file.

Yes, that is what I meant by:

msg8719:

I could work around the problem in
Kleopatra by just assuming for files > 1MiB the progress is always scaled and
live with a slight jump after MiB.
And then calculate progress based on the Input size (as total) Kleopatra knows.

But that would be a workaround for "GpgME does not let me do what I want to do"
Maybe we need an "gpgme_add_engine_cmd_line_args" hack interface in GpgME to
give callers the flexibility to do add arbitrary arguments to gpgme engine
calls. This could probably reduce the "GpgME is a hindrance" perception.

Maybe we should phone about this.

Aug 10 2016, 6:37 PM · gpgme, Bug Report
werner added a project to T2352: doc/version.texi is sometimes not generated: Restricted Project.
Aug 10 2016, 4:36 PM · gpgme, Bug Report
werner added a comment to T2352: doc/version.texi is sometimes not generated.

Done in master.

Aug 10 2016, 4:36 PM · gpgme, Bug Report
werner added a comment to T2352: doc/version.texi is sometimes not generated.

version.texi is such an annoyance. I'll take care of it and will replace it
with a different annoying thing.

Aug 10 2016, 3:47 PM · gpgme, Bug Report
werner claimed T2352: doc/version.texi is sometimes not generated.
Aug 10 2016, 3:47 PM · gpgme, Bug Report
werner added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

--set-filesize is used for an entirely different purpose - That it is also used
in progress is only related tothat other purpose (pre-generated OpenPGP packets
as input)

If you know the file size in advance, you can pass the entire file to gpgme and
there is no need to use a pipeline. If you want a pipeline/stremaing, gpg won't
assume anything about the input file size. telling it that size is an ugly hack.

Mean while I added a Units arg to the PROGRESS status line, so that we can do
further tweaking in gpgme and won't need to mess with gnupg. Maybe we can
eventually find a solution which affects only gpgme.

If you really want a percent indication, why not using a file watcher in Kleo
and stat(2) the file.

Aug 10 2016, 3:46 PM · gpgme, Bug Report
werner added a comment to T2314: Improve detection of gpgme_data_identify.

PNGs are noe rejected.

Aug 10 2016, 3:38 PM · gpgme, Feature Request, gpg4win

Aug 9 2016

aheinecke added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

All not good.

To be honest I'm a bit pigheaded here. I could work around the problem in
Kleopatra by just assuming for files > 1MiB the progress is always scaled and
live with a slight jump after MiB.
And then calculate progress based on the Input size (as total) Kleopatra knows.

The Problem for me is that QGpgME will never emit current + total progress
because it always provides Data through callbacks. And GpgME++ also is pretty
much designed for this in the Dataprovider interface. I dislike maintaining half
working / weird behaving code so I looked into possible ways to fix that.

What I did then was to take a look at gnupg's progress code and saw that total
is modified by --set-filesize. So I thought "awesome there is a mechanism to
provide gnupg with the total filesize even if callbacks are used" and did that.
I still think that this is great, and a good solution (no changes to gnupg
required etc.).

You try to do something which does not make sense. would have exact numbers
they do not tell you anything valid. It might be that
large parts of the file are compressed into just a few bytes and thus your
progressbar makes a huge leap at one time and later it gets slow again despite
that these are only a few 100 MiB (compared to the 10 GiB or zeroes).

I'm not trying to have a 100% reliable progress or a second exact estimate of
when a job is finished. But I want to show some general information "Ok the task
is 90% done, just stay tuned a bit longer"

This is User Interface basics. If you have a long running task (and crypo tasks
can easily run into minutes / hours) show _some_ progress indication. Due to the
pecularities / bugs of the API Kleopatra just shows "I'm working". This is very
bad User Interface and I would like to fix that. And Ideally my fix for this
would be where the Problem happens and not a workaround for the problem in the
user interface.

Aug 9 2016, 6:04 PM · gpgme, Bug Report
werner added a project to T2429: Allow Assuan flags to be set: Restricted Project.
Aug 9 2016, 3:49 PM · gpgme, Feature Request
werner added a comment to T2429: Allow Assuan flags to be set.

Fixed with commit b5e16b0

Aug 9 2016, 3:49 PM · gpgme, Feature Request
werner closed T1958: Use vfork/posix_spawn in gpgme as Resolved.
Aug 9 2016, 3:41 PM · Info Needed, gpgme, Feature Request
werner added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

All not good. You try to do something which does not make sense. Even if you
would have exact numbers they do not tell you anything valid. It might be that
large parts of the file are compressed into just a few bytes and thus your
progressbar makes a huge leap at one time and later it gets slow again despite
that these are only a few 100 MiB (compared to the 10 GiB or zeroes).

Aug 9 2016, 3:33 PM · gpgme, Bug Report
aheinecke added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

Always returning KiB would work for me as a compromise I don't know otherwise
that the switch from Bytes to KiB happened because I have no total.

Makes the code for QGpgME / GpgMEpp users more complicated though as they need a
mapping of progress to input file size. With the --set-filesize patch It would
be nicer as I could just handle this generically in GpgMEpp if an input is
seekable It would provide GnuPG with the size information and afterwards we have
progress where current and total could be used for relative progress calculation:

if (dp->isSupported(DataProvider::Seek)) {

off_t size = seek(0, SEEK_END);
seek(0, SEEK_SET);
gpgme_data_set_file_size(d->data, static_cast<unsigned long long>(size));

}

Aug 9 2016, 12:02 PM · gpgme, Bug Report
werner added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

What do you think of changing GnuPG's PROGRESS interface to always return KiB
and cap that value before it overflows? We would also cap in GPGME in case
gpgme is a 32 bit application and gnupg is 64 bit (or Windows).

Aug 9 2016, 11:55 AM · gpgme, Bug Report
werner removed a project from T2385: support more than 1024 fds.: Bug Report.
Aug 9 2016, 11:49 AM · gpgrt, Feature Request, gpgme
werner renamed T2385: support more than 1024 fds. from _gpgme_io_select crashes if fd > 1024 to support more than 1024 fds..
Aug 9 2016, 11:49 AM · gpgrt, Feature Request, gpgme
werner added a comment to T2385: support more than 1024 fds..

I changed this ussie to a feature request.

Aug 9 2016, 11:49 AM · gpgrt, Feature Request, gpgme
werner added a project to T2385: support more than 1024 fds.: Feature Request.
Aug 9 2016, 11:49 AM · gpgrt, Feature Request, gpgme
werner closed T2089: retype timestamps to time_t for portability as Resolved.
Aug 9 2016, 11:45 AM · Won't Fix, gpgme, Bug Report
werner added a project to T2089: retype timestamps to time_t for portability: Won't Fix.
Aug 9 2016, 11:45 AM · Won't Fix, gpgme, Bug Report

Aug 8 2016

werner added a comment to T2429: Allow Assuan flags to be set.

Debian's codesearch shows that gpgme_op_assuan_transact is only used by gpa and
a configure test in kdelibpim for its own copy of gpgme. In gpa it is harmless
to enable this. The only effect is that a status line callback will see a
status keyword "#" and status callbacks should always ignore unknown status lines.

Let's enable it by default.

Aug 8 2016, 4:55 PM · gpgme, Feature Request

Aug 5 2016

aheinecke added a project to T2420: TOFU Info for a Key: Duplicate.
Aug 5 2016, 10:49 AM · Duplicate, gpgme, gnupg (gpg21), Feature Request
aheinecke added a comment to T2420: TOFU Info for a Key.

This was already mentioned in T2360 so let's not clutter the tracker.
Resolved as duplicate.

Aug 5 2016, 10:49 AM · Duplicate, gpgme, gnupg (gpg21), Feature Request
aheinecke added a comment to T2420: TOFU Info for a Key.

Duplicate of T2360

Aug 5 2016, 10:49 AM · Duplicate, gpgme, gnupg (gpg21), Feature Request
aheinecke closed T2420: TOFU Info for a Key as Resolved.
Aug 5 2016, 10:49 AM · Duplicate, gpgme, gnupg (gpg21), Feature Request

Aug 2 2016

justus added a comment to T2407: The assuan interface in gpgme is not documented.

Fixed in 135185b7.

Aug 2 2016, 4:58 PM · Documentation, gpgme, Bug Report
justus closed T2407: The assuan interface in gpgme is not documented as Resolved.
Aug 2 2016, 4:58 PM · Documentation, gpgme, Bug Report
justus claimed T2407: The assuan interface in gpgme is not documented.
Aug 2 2016, 4:58 PM · Documentation, gpgme, Bug Report
justus added a comment to T2426: gpgme - Inappropriate ioctl for device.

Ok, there are no significant patches on top of pygpgme. Note that pygpgme is not really
maintained, and that we neither develop nor support pygpgme. But seeing that dnf is important to
Fedora, let's figure this out.

It would be nice if you could try to reproduce the problem without pygpgme though, just to make a
more minimal test case. I see the exception is thrown during some import. This is how I strace
gnupg to see what ioctls it is issuing:

% strace -eioctl g10/gpg --import ../tests/openpgp/samplekeys/ecc-sample-1-pub.asc
gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!
gpg: key 0BA52DF0BAA59D9C: public key "ec_dsa_dh_256 <openpgp@brainhub.org>" imported

  • SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26716, si_uid=1000, si_status=0,

si_utime=0, si_stime=0} ---
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon
echo ...}) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, {B38400 opost isig icanon
echo ...}) = 0
gpg: Total number processed: 1
gpg: imported: 1
+++ exited with 0 +++

Note that if you try to strace your gpgme-based application, you need to pass '-f' to strace to
follow forks.

I have grepped through gpgme and gnupg, and it looks like gnupg is only doing ioctls to terminals,
so maybe your container setup is doing something funny to terminals. But let's see what the strace
shows.

Aug 2 2016, 2:06 PM · Python, Fedora, Bug Report, gpgme

Jul 29 2016

techtonik added a comment to T2426: gpgme - Inappropriate ioctl for device.

Here is the info about Fedora patches
https://www.rpmfind.net/linux/RPM/fedora/secondary/devel/rawhide/src/p/pygpgme-0.3-15.fc24.src.html

Jul 29 2016, 3:26 PM · Python, Fedora, Bug Report, gpgme
techtonik added a comment to T2426: gpgme - Inappropriate ioctl for device.

On Wed, Jul 27, 2016 at 1:24 PM, Justus Winter via BTS
<gnupg@bugs.g10code.com> wrote:

I see that you are using pygpgme, is that correct?If so, which version, and are
there significant patches applied in the Fedora package? And can you please tell
me what version of libgpgme you are using?

Jul 29 2016, 3:11 PM · Python, Fedora, Bug Report, gpgme

Jul 28 2016

justus added projects to T2429: Allow Assuan flags to be set: Feature Request, gpgme.
Jul 28 2016, 2:12 PM · gpgme, Feature Request
justus set Version to master on T2428: Implement returning data from inquire callbacks.
Jul 28 2016, 2:07 PM · gpgme, Feature Request
justus added projects to T2428: Implement returning data from inquire callbacks: Feature Request, gpgme.
Jul 28 2016, 2:07 PM · gpgme, Feature Request

Jul 27 2016

justus added a comment to T2426: gpgme - Inappropriate ioctl for device.

Thanks for the report.

I see that you are using pygpgme, is that correct? If so, which version, and are
there significant patches applied in the Fedora package? And can you please tell
me what version of libgpgme you are using?

Let's try to figure out which ioctl fails. Could you try to strace this process?

Jul 27 2016, 12:24 PM · Python, Fedora, Bug Report, gpgme
justus claimed T2426: gpgme - Inappropriate ioctl for device.
Jul 27 2016, 12:24 PM · Python, Fedora, Bug Report, gpgme
techtonik added projects to T2426: gpgme - Inappropriate ioctl for device: Python, Fedora, Bug Report, gpgme.
Jul 27 2016, 11:01 AM · Python, Fedora, Bug Report, gpgme

Jul 22 2016

aheinecke added a comment to T2314: Improve detection of gpgme_data_identify.

While the detection works now to distinguish between PGP and S/MIME data it
might be more robust if it would do some more sanity checking on the packet.

E.g. PNG Graphics are detected as PGP Signatures because they start with 0x89

But this is not super neccessary as for the use case of file extension support
valid data will be detected correctly.

Jul 22 2016, 2:28 PM · gpgme, Feature Request, gpg4win

Jul 21 2016

justus added a comment to T2405: Possible timing problem with TOFU.

This is a GnuPG problem:

teythoon@europa ~/repos/g10/gpgme/obj/tests (git)-[master] % rm $GNUPGHOME/tofu.db && ( gpg2 --verify --with-
colons --status-fd=1 /tmp/testmsg )2>/dev/null | grep TOFU_STATS
[GNUPG:] TOFU_STATS 1 0 0 auto
[GNUPG:] TOFU_STATS_LONG Verified 0 messages signed by "Alfa Test (demo key) <alfa@example.net>".
[GNUPG:] TOFU_STATS 1 0 0 none
[GNUPG:] TOFU_STATS 1 0 0 none
teythoon@europa ~/repos/g10/gpgme/obj/tests (git)-[master] % rm $GNUPGHOME/tofu.db && ( gpg2 --verify --with-
colons --status-fd=1 /tmp/testmsg && gpg2 --verify --with-colons --status-fd=1 /tmp/testmsg && sleep 1 && gpg2 -
-verify --with-colons --status-fd=1 /tmp/testmsg )2>/dev/null | grep TOFU_STATS
[GNUPG:] TOFU_STATS 1 0 0 auto
[GNUPG:] TOFU_STATS_LONG Verified 0 messages signed by "Alfa Test (demo key) <alfa@example.net>".
[GNUPG:] TOFU_STATS 1 0 0 none
[GNUPG:] TOFU_STATS 1 0 0 none
[GNUPG:] TOFU_STATS 1 0 0 none
[GNUPG:] TOFU_STATS 1 0 0 none
[GNUPG:] TOFU_STATS 1 0 0 none
[GNUPG:] TOFU_STATS 2 1 0 auto 1 1
[GNUPG:] TOFU_STATS_LONG Verified 1 message signed by "Alfa Test (demo key) <alfa@example.net>"%0Ain the past
1~second.
[GNUPG:] TOFU_STATS 2 1 0 auto 1 1
[GNUPG:] TOFU_STATS_LONG Verified 1 message signed by "Alpha Test (demo key) <alpha@example.net>"%0Ain the past
1~second.
[GNUPG:] TOFU_STATS 2 1 0 auto 1 1
[GNUPG:] TOFU_STATS_LONG Verified 1 message signed by "Alice (demo key)"%0Ain the past 1~second.

Jul 21 2016, 1:44 PM · gnupg, gnupg (gpg22), Bug Report
justus added projects to T2405: Possible timing problem with TOFU: gnupg (gpg22), gnupg.
Jul 21 2016, 1:44 PM · gnupg, gnupg (gpg22), Bug Report

Jul 20 2016

aheinecke added projects to T2420: TOFU Info for a Key: Feature Request, gnupg (gpg21), gpgme.
Jul 20 2016, 2:31 PM · Duplicate, gpgme, gnupg (gpg21), Feature Request
aheinecke set External Link to https://phabricator.kde.org/T2520 on T2420: TOFU Info for a Key.
Jul 20 2016, 2:31 PM · Duplicate, gpgme, gnupg (gpg21), Feature Request

Jul 18 2016

justus claimed T2405: Possible timing problem with TOFU.
Jul 18 2016, 6:05 PM · gnupg, gnupg (gpg22), Bug Report
justus added a comment to T2405: Possible timing problem with TOFU.

I agree, these are problems we should address, they might be the symptoms of a
race somewhere. I bet they are in GnuPG though.

Jul 18 2016, 6:05 PM · gnupg, gnupg (gpg22), Bug Report

Jul 16 2016

aheinecke removed a project from T2368: Integer overflow in gpgme_progress_cb arguments: Restricted Project.
Jul 16 2016, 9:05 PM · gpgme, Bug Report
aheinecke added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

D369: 860_0001-Core-Add-file_size-support-to-gpgme_data.patch

Jul 16 2016, 9:05 PM · gpgme, Bug Report
aheinecke added a comment to T2368: Integer overflow in gpgme_progress_cb arguments.

Since Kleopatra is using data callbacks the total is always 0 so I can't use the
way to calculate percent.

Previously kleopatra used the filesize as total value. This does not work if
total is always 0 and the progress switches based on the current file size. E.g
for a large file the prgress decreases after 1024*1024 bytes have been processed.

I could probably add some weird "if gnupg > 2.1.14 and the file size is >
1024*1024 and the progress is < 1024*1024 expect it to be bytes and otherwise
expect it to be kilobytes." But this is not nice to use API.

My attached patch solves this by giving data callback users the opportunity to
provide GnuPG with the information how much input size it can expect. This makes
total / current workable from the start and everything is fine.

But as we jabbered about you do not like this patch :'-(

Problem not resolved for me as I think the weird handling currently imposed by
GnuPG is definitely not "Easy"

Jul 16 2016, 9:05 PM · gpgme, Bug Report

Jul 7 2016

werner added a comment to T2314: Improve detection of gpgme_data_identify.

I think that the charset header in the armor is not a good idea. In fact gpg
does not consider it at all. The armor headers are not protected and thus they
should not not chnage the semantics of the encrypted message. There is also no
way to keep this information after removing the armor or to re-create the header
from a binary message.

I consider a new flag for the Literal Data Packet to indicate theat the content
is a MIME message to be better. Standard MIME methods can then be used to
describe the content. Right now we only have an 'u' flag to indicate UTF-8
encoding (which to some interpretation of OpenPGP is anyway the default).
An 'm' flag would make it explicit that the content is MIME encoded and there
would be no more need to derive that info from the context.

Jul 7 2016, 9:05 AM · gpgme, Feature Request, gpg4win
werner added a comment to T2314: Improve detection of gpgme_data_identify.

I also created a set of examples messages. They are in
gnupg/tests/openpgp/samplemsgs/

Jul 7 2016, 8:56 AM · gpgme, Feature Request, gpg4win
werner added a project to T2407: The assuan interface in gpgme is not documented: Documentation.
Jul 7 2016, 8:36 AM · Documentation, gpgme, Bug Report

Jul 5 2016

aheinecke added a comment to T2407: The assuan interface in gpgme is not documented.

interested in this, too. Especially since you always tell me assuan is so easy
to use because it's all in gpgme :-)

Jul 5 2016, 9:35 PM · Documentation, gpgme, Bug Report

Jul 4 2016

werner added projects to T2407: The assuan interface in gpgme is not documented: Bug Report, gpgme.
Jul 4 2016, 12:30 PM · Documentation, gpgme, Bug Report

Jul 1 2016

aheinecke added projects to T2405: Possible timing problem with TOFU: Bug Report, gpgme.
Jul 1 2016, 4:40 PM · gnupg, gnupg (gpg22), Bug Report
aheinecke claimed T2314: Improve detection of gpgme_data_identify.
Jul 1 2016, 11:02 AM · gpgme, Feature Request, gpg4win
aheinecke added a comment to T2314: Improve detection of gpgme_data_identify.

Fix for the difference in detection of armored vs. binary detached signatures
was trivial so I've pushed it with rev. 570bf2a

Looks good to me know. I'll start using it in Kleopatra and we will see what
breaks :-)

Have not tested different S/MIME messages yet.

Jul 1 2016, 11:02 AM · gpgme, Feature Request, gpg4win

Jun 24 2016

aheinecke added a comment to T2314: Improve detection of gpgme_data_identify.

Jun 24 2016, 2:35 PM · gpgme, Feature Request, gpg4win
aheinecke added a comment to T2314: Improve detection of gpgme_data_identify.

Thanks.

I've created some examples to test it. They are all done with alfa@example.com
test key. Found an issue through that.

-ba (detached ascii armored signature) is detected as PGP-Signed and not as
PGP-Signature.

examples/plain.txt.asc: PGP-signed

A discussion about KMail handling PGP/Inline encodings [1] also makes me wonder
if data_identfiy should also return the output charset of text messages if it is
provided in the Armor Header. Afaik there is currently no API in gpgme to check
this and semantically It would make sense to me to parse this in identify, too.
But this is more of a question wether or not you think it makes sense to do this
directly. I'm not strongly opinionated about this.

1: https://bugs.kde.org/show_bug.cgi?id=248058

Jun 24 2016, 2:35 PM · gpgme, Feature Request, gpg4win

Jun 23 2016

werner added a project to T2314: Improve detection of gpgme_data_identify: Restricted Project.
Jun 23 2016, 10:18 AM · gpgme, Feature Request, gpg4win
werner removed a project from T2314: Improve detection of gpgme_data_identify: In Progress.
Jun 23 2016, 10:18 AM · gpgme, Feature Request, gpg4win
werner added a comment to T2314: Improve detection of gpgme_data_identify.

Done with commit cf37a57.
Note that only the first 2k are inspected.

Jun 23 2016, 10:18 AM · gpgme, Feature Request, gpg4win

Jun 21 2016

werner added a comment to T2314: Improve detection of gpgme_data_identify.

Binary PGP messages are now detected. Not well tested but the run-verify test
tool can help to check the feature.

Jun 21 2016, 4:25 PM · gpgme, Feature Request, gpg4win
werner added a project to T2314: Improve detection of gpgme_data_identify: In Progress.
Jun 21 2016, 4:25 PM · gpgme, Feature Request, gpg4win
werner renamed T2314: Improve detection of gpgme_data_identify from Improve detection of gpgme_data_indentify to Improve detection of gpgme_data_identify.
Jun 21 2016, 10:46 AM · gpgme, Feature Request, gpg4win

Jun 20 2016

werner added a comment to T2314: Improve detection of gpgme_data_identify.

I need to implement a partial OpenPGP parser to decide what a certain PGP
Message is about and also bot all binary OpenPGP files. Please have some patience.

Jun 20 2016, 9:40 PM · gpgme, Feature Request, gpg4win