Page MenuHome GnuPG
Feed All Stories

Mar 23 2022

gniibe added a comment to T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.

In libgcrypt (1.10), we have a copy of the jitterentropy 3.3.0 from:
http://www.chronox.de/jent.html
or https://github.com/smuellerDD/jitterentropy-library

Mar 23 2022, 1:02 AM · backport, libgcrypt, Bug Report

Mar 22 2022

TonyBarganski raised the priority of T5886: Mutt PGP Error: "Could not decrypt PGP message" & "Could not copy message" on Ubuntu machine but works on macOS machine from Low to Normal.

Please refer to the open Mutt Bug issue 401 below regarding the troubleshooting we've performed which seems to suggest there *might* be something a skew on the gpg binaries.

Mar 22 2022, 11:02 PM · gnupg, Support
engel97 added a comment to T5673: Using empty passphrase key pair, gpg2.2.9 fails to decrypt with error "No secret key" on a gpg1.4/2.0 keyring format even though the secret keys migration was successful .

Attached is the keyring package containing both pub and sec ring files. When run into GPG2.2.9, this gets migrated to the newer format but it fails when the the passphrase is empty(which works in older gpg)

Mar 22 2022, 5:14 PM · gnupg (gpg22), Bug Report
eliz added a comment to T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.

Let me ask a more specific question, since you mentioned "support of detecting numbers of CPU and having more than 1 CPUs": can you point me to the code which detects the number of CPUs on MS-Windows systems, where I could learn how that code is affected by having EOPNOTSUPP defined? I will then hopefully understand better what you are saying, and either agree with you that this is unworkable on Windows, or propose a better solution.

Mar 22 2022, 1:55 PM · backport, libgcrypt, Bug Report
eliz added a comment to T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4.

I guess I don't understand what you mean by "native building". This build was with MinGW, which is as "native" as MinGW64 is.
The reason for the problem is (AFAIU) that MinGW64 went after Microsoft's change in stat due to the 32-bit vs 64-bit time and off_t values issue.s That change breaks backward compatibility in more than one way: programs compiled on some versions of Windows will not run on other versions. mingw.org's MinGW kept the original semantics and symbols, which is why _stat32 exists in the mingw.org's headers, but is not exposed by default.

Mar 22 2022, 1:52 PM · gnupg24, toolchain, Feature Request, patch
eliz added a comment to T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.

Can you please tell more about how this causes non-working code? MinGW64 defines EOPNOTSUPP to an arbitrary constant which (AFAICT) is never actually returned or used in the MS-Windows runtime. Their documentation, in https://docs.microsoft.com/en-us/cpp/c-runtime-library/errno-constants?view=msvc-170, says:

Mar 22 2022, 1:45 PM · backport, libgcrypt, Bug Report
eliz added a comment to T5890: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgpg-error-1.44.

This is with mingw.org's MinGW, version 5.4.x.

Mar 22 2022, 1:36 PM · gpgrt, Bug Report
eliz added a comment to T5889: Declaration of 'struct timespec' in npth-1.6 conflicts with some versions of MinGW.

The version of MinGW is 5.4.x, the latest one. It is available from https://osdn.net/projects/mingw/releases.
MinGW64 is a fork of the above (original) MinGW. They have unfortunately diverged, thus the need to have these changes.

Mar 22 2022, 1:30 PM · npth, Bug Report
werner triaged T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4 as Normal priority.

Turned into a feature request because native building on Windows is not supported.

Mar 22 2022, 11:49 AM · gnupg24, toolchain, Feature Request, patch
werner triaged T5899: Fix compilation of dirmngr with mingw.org's MinGW as Normal priority.
Mar 22 2022, 11:43 AM · patch, Feature Request, Windows, toolchain
werner triaged T5900: add npth socket test case as Low priority.
Mar 22 2022, 11:42 AM · Tests, npth, Feature Request
gniibe added a comment to T5870: libgcrypt: AEAD API for FIPS 140 (in future).

I had thought that we need to combine hkdf so that key and iv can generate within libgcrypt internally.
Probably, this assumption of mine may be wrong.

Mar 22 2022, 10:53 AM · Feature Request, FIPS, libgcrypt
yaowenbin1 created T5900: add npth socket test case.
Mar 22 2022, 10:44 AM · Tests, npth, Feature Request
werner committed rGce69d55f70a1: gpgtar: New option --with-log (authored by werner).
gpgtar: New option --with-log
Mar 22 2022, 10:23 AM
werner committed rGed53d41b4c46: gpgtar: New option --with-log (authored by werner).
gpgtar: New option --with-log
Mar 22 2022, 10:20 AM
werner added projects to T5898: Two fixes for the gnupg-2.3.4 test suite when running on MS-Windows: gnupg (gpg23), Windows.
Mar 22 2022, 7:45 AM · Windows, gnupg (gpg23), Bug Report
werner added a comment to T5899: Fix compilation of dirmngr with mingw.org's MinGW.

The original plan was to source copy dns.c from upstream and thus we tried to avoid any changes. Unfortunately we never achieved to push things upstream and thus our own changes got it. Eventually we will cleanup the code and use our own framework.

Mar 22 2022, 7:44 AM · patch, Feature Request, Windows, toolchain
gniibe committed rPTHed674b9eb218: w32: Don't allocate attribute internally. (authored by gniibe).
w32: Don't allocate attribute internally.
Mar 22 2022, 6:12 AM
gniibe committed rKe751d1fa01bd: Fix test of t-cms-parser. (authored by gniibe).
Fix test of t-cms-parser.
Mar 22 2022, 5:26 AM
gniibe triaged T5892: t-cms-parser test program in libksba-1.6.0 needs to open files in binary mode for MS-Windows as Normal priority.
Mar 22 2022, 3:22 AM · libksba, Bug Report
gniibe changed the status of T5892: t-cms-parser test program in libksba-1.6.0 needs to open files in binary mode for MS-Windows from Open to Testing.

Thank you. Confirmed and applied.

Mar 22 2022, 3:21 AM · libksba, Bug Report
gniibe claimed T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.

Thank you for your report.

Mar 22 2022, 3:11 AM · backport, libgcrypt, Bug Report
gniibe claimed T5890: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgpg-error-1.44.

Please specify your MinGW version.

Mar 22 2022, 3:01 AM · gpgrt, Bug Report
gniibe added a project to T5889: Declaration of 'struct timespec' in npth-1.6 conflicts with some versions of MinGW: npth.
Mar 22 2022, 2:23 AM · npth, Bug Report
gniibe claimed T5889: Declaration of 'struct timespec' in npth-1.6 conflicts with some versions of MinGW.

Please specify the version of MinGW, which you are using. (We use Mingw-w64 for GnuPG Project.)

Mar 22 2022, 2:23 AM · npth, Bug Report

Mar 21 2022

werner moved T5273: Release Gpg4win 4.x.x from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Mar 21 2022, 11:02 PM · Restricted Project, gpg4win, Release Info
werner added a comment to T5778: Wish to add a generic comment or hint to encrypted data.

Using an armor header would allow for this. But well, this blows up the data and frankly, I fear that it can lead to unexpected side effects. Better to use a respective file name or MIME header.

Mar 21 2022, 11:02 PM · gnupg, Restricted Project
werner moved T4729: WKD via http_proxy does not work if DNS is broken/unavailable from Restricted Project Column to Restricted Project Column on the Restricted Project board.
Mar 21 2022, 10:56 PM · gnupg (gpg22), Restricted Project, dns, dirmngr
werner changed the status of T4729: WKD via http_proxy does not work if DNS is broken/unavailable from Open to Testing.
Mar 21 2022, 10:56 PM · gnupg (gpg22), Restricted Project, dns, dirmngr
werner committed rG6d30fb6940d5: dirmngr: Make WKD_GET work even for servers not handling SRV RRs. (authored by werner).
dirmngr: Make WKD_GET work even for servers not handling SRV RRs.
Mar 21 2022, 10:41 PM
werner added a comment to T4729: WKD via http_proxy does not work if DNS is broken/unavailable.

Actually this is pretty obvious; we better ignore such misbehaving servers.

Mar 21 2022, 10:40 PM · gnupg (gpg22), Restricted Project, dns, dirmngr
werner committed rG92c8ae720e69: dirmngr: Make WKD_GET work even for servers not handling SRV RRs. (authored by werner).
dirmngr: Make WKD_GET work even for servers not handling SRV RRs.
Mar 21 2022, 10:40 PM
eliz created T5899: Fix compilation of dirmngr with mingw.org's MinGW.
Mar 21 2022, 7:25 PM · patch, Feature Request, Windows, toolchain
eliz created T5898: Two fixes for the gnupg-2.3.4 test suite when running on MS-Windows.
Mar 21 2022, 7:20 PM · Windows, gnupg (gpg23), Bug Report
eliz created T5897: Fix MinGW compilation error with 'struct _stat32' in common/sysutils.c from gnupg-2.3.4.
Mar 21 2022, 7:15 PM · gnupg24, toolchain, Feature Request, patch
eliz created T5896: Honor HOME envfironment variable on MS-Windows in gnupg-2.3.4.
Mar 21 2022, 7:12 PM · Bug Report
eliz created T5895: Fix an error in w32_try_mkdir from gnupg-2.3.4.
Mar 21 2022, 7:10 PM · Bug Report
eliz created T5894: Various issues with system headers and _WIN32_WINNT value in MinGW build of gnupg-2.3.4.
Mar 21 2022, 7:07 PM · gnupg, Feature Request
eliz created T5893: Patches to compile pinentry-1.2.0 cleanly with mingw.org's MinGW.
Mar 21 2022, 6:59 PM · Windows, pinentry, Bug Report
eliz created T5892: t-cms-parser test program in libksba-1.6.0 needs to open files in binary mode for MS-Windows.
Mar 21 2022, 6:52 PM · libksba, Bug Report
eliz created T5891: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgcrypt-1.10.0.
Mar 21 2022, 6:49 PM · backport, libgcrypt, Bug Report
eliz created T5890: EOPNOTSUPP is not defined in mingw.org's MinGW, fails compilation of libgpg-error-1.44.
Mar 21 2022, 6:46 PM · gpgrt, Bug Report
eliz created T5889: Declaration of 'struct timespec' in npth-1.6 conflicts with some versions of MinGW.
Mar 21 2022, 6:43 PM · npth, Bug Report
werner triaged T5886: Mutt PGP Error: "Could not decrypt PGP message" & "Could not copy message" on Ubuntu machine but works on macOS machine as Low priority.
Mar 21 2022, 6:29 PM · gnupg, Support
Jakuje added a comment to T5885: Better message than "Inappropriate ioctl for device" for tty pinentries.

Adding

GPG_TTY=$(tty)
export GPG_TTY

makes this working so thank you for the pointer.

Mar 21 2022, 4:23 PM · Feature Request, pinentry, gnupg
William added a project to T5888: uid changed from [ultimate] to [ unknown]: gnupg.
Mar 21 2022, 3:15 PM · gnupg (gpg23), Bug Report
werner changed the status of T4394: Use I/O callbacks in gpgtar from Open to Testing.

No need for callbacks actually. We can do it in a simpler way. See commit rGe5ef5e3b914d5c8f0b841b078b164500ea157804

Mar 21 2022, 1:27 PM · gnupg (gpg22), gpgtar
werner committed rGd431feb3077f: gpgtar: Finally use a pipe for decryption. (authored by werner).
gpgtar: Finally use a pipe for decryption.
Mar 21 2022, 1:22 PM
werner committed rGe5ef5e3b914d: gpgtar: Finally use a pipe for decryption. (authored by werner).
gpgtar: Finally use a pipe for decryption.
Mar 21 2022, 1:22 PM
Antonio Rojas <arojas@archlinux.org> committed rKLEOPATRA39d95e570eab: Drop boost dependency (authored by Antonio Rojas <arojas@archlinux.org>).
Drop boost dependency
Mar 21 2022, 11:20 AM
gniibe added a comment to T5884: dotlock is not perfect (errornously remove .lock as stale lockfile).

Now, the problem is not about the case of pid == getpid () any more.

Mar 21 2022, 9:56 AM · Bug Report, gnupg (gpg23)
werner added a comment to T5884: dotlock is not perfect (errornously remove .lock as stale lockfile).

That would be bad for unattended use cases. Recording the time the lock file was created might be a solution. Then cleanup only after 15 minutes or so.

Mar 21 2022, 8:37 AM · Bug Report, gnupg (gpg23)
werner triaged T5887: gpgme_data_identify() function prototype not as documented as Normal priority.
Mar 21 2022, 7:45 AM · Documentation, gpgme, Bug Report
Laurent Montel <montel@kde.org> committed rLIBKLEO4d72c60509c0: GIT_SILENT: master is open (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: master is open
Mar 21 2022, 7:17 AM
Laurent Montel <montel@kde.org> committed rLIBKLEO59782a425e25: GIT_SILENT: prepare 5.19.90 (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: prepare 5.19.90
Mar 21 2022, 7:05 AM
Laurent Montel <montel@kde.org> committed rKLEOPATRAbd2344c732c0: GIT_SILENT: prepare 5.19.90 (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: prepare 5.19.90
Mar 21 2022, 7:04 AM
gniibe added a comment to T5884: dotlock is not perfect (errornously remove .lock as stale lockfile).

Note that there is a race condition still (after a fix of one race condition which may be somewhat likely and reproducible, and another fix of race condition when there is a stale lockfile).

Mar 21 2022, 5:16 AM · Bug Report, gnupg (gpg23)
gniibe added a comment to T5884: dotlock is not perfect (errornously remove .lock as stale lockfile).

Fixed another race in commit: rG2f1afc129662: common: Fix another race condition, and address the other one.

Mar 21 2022, 5:09 AM · Bug Report, gnupg (gpg23)
William created T5888: uid changed from [ultimate] to [ unknown].
Mar 21 2022, 5:05 AM · gnupg (gpg23), Bug Report

Mar 20 2022

loskiq updated loskiq.
Mar 20 2022, 9:54 AM

Mar 19 2022

pert updated the task description for T5887: gpgme_data_identify() function prototype not as documented.
Mar 19 2022, 3:15 PM · Documentation, gpgme, Bug Report
pert created T5887: gpgme_data_identify() function prototype not as documented.
Mar 19 2022, 3:04 PM · Documentation, gpgme, Bug Report
Laurent Montel <montel@kde.org> committed rLIBKLEOb3bc06c06377: GIT_SILENT: prepare 5.20rc (authored by Laurent Montel <montel@kde.org>).
GIT_SILENT: prepare 5.20rc
Mar 19 2022, 9:46 AM
gniibe committed rG2f1afc129662: common: Fix another race condition, and address the other one. (authored by gniibe).
common: Fix another race condition, and address the other one.
Mar 19 2022, 6:55 AM
gniibe committed rG0ba69e558191: gpg: Always use version >= 4 to generate signature. (authored by gniibe).
gpg: Always use version >= 4 to generate signature.
Mar 19 2022, 5:41 AM
engel97 added a comment to T5804: Using empty passphrase key pair, gpg2.3.4 fails to decrypt with error "No passphrase given" on a gpg1.4/2.0 keyring format even though the secret keys migration was successful .

{F3381469}I uploaded the whole homedir containing the keys after they were migrated by the new gnupg2.3.4. It should have all of the keys in there. Don't worry, these keys are just for testing and not used anywhere.

Mar 19 2022, 4:21 AM · gnupg24, Bug Report

Mar 18 2022

werner added a comment to T5885: Better message than "Inappropriate ioctl for device" for tty pinentries.

Is your GPG_TTY set so that pinentry can find the right tty?

Mar 18 2022, 5:36 PM · Feature Request, pinentry, gnupg
werner edited projects for T5886: Mutt PGP Error: "Could not decrypt PGP message" & "Could not copy message" on Ubuntu machine but works on macOS machine, added: Support, Mutt; removed Bug Report.

Sorry, without detailed output of gpg we can't help you here. This is definitely not a GnuPG bug because too many people are using mutt and gnupg. You should also "set crypt_use_gpgme" -it works far better.

Mar 18 2022, 5:32 PM · gnupg, Support
Jakuje added a comment to T5885: Better message than "Inappropriate ioctl for device" for tty pinentries.

the -v does not show more useful info on the gpg side:

# gpg2 --quick-gen-key admin
About to create a key for:
    "admin"
Mar 18 2022, 3:00 PM · Feature Request, pinentry, gnupg
TonyBarganski created T5886: Mutt PGP Error: "Could not decrypt PGP message" & "Could not copy message" on Ubuntu machine but works on macOS machine.
Mar 18 2022, 2:47 PM · gnupg, Support
werner committed rG449d2fbcde63: common: New function map_static_strings (authored by werner).
common: New function map_static_strings
Mar 18 2022, 2:23 PM
werner committed rG8631d4cfe251: gpg: Allow decryption of symencr even for non-compliant cipher. (authored by werner).
gpg: Allow decryption of symencr even for non-compliant cipher.
Mar 18 2022, 2:23 PM
werner committed rG06b70daa505d: gpg: Print info about the used AEAD algorithm in the compliance msg. (authored by werner).
gpg: Print info about the used AEAD algorithm in the compliance msg.
Mar 18 2022, 2:23 PM
werner committed rG6d6438a361d2: common: New flags for gnupg_spawn_process (authored by werner).
common: New flags for gnupg_spawn_process
Mar 18 2022, 2:23 PM
werner added a comment to T5885: Better message than "Inappropriate ioctl for device" for tty pinentries.

Please run with option -v to see what's wrong with pinentry.

Mar 18 2022, 2:22 PM · Feature Request, pinentry, gnupg
werner committed rGc1453665491f: common: New function map_static_strings (authored by werner).
common: New function map_static_strings
Mar 18 2022, 2:10 PM
werner committed rG15eda7ce783a: gpg: Print info about the used AEAD algorithm. (authored by werner).
gpg: Print info about the used AEAD algorithm.
Mar 18 2022, 2:10 PM
werner committed rG7ba44d15ca2f: common: New flags for gnupg_spawn_process (authored by werner).
common: New flags for gnupg_spawn_process
Mar 18 2022, 2:10 PM
werner committed rGe081a601f7b3: gpg: Allow decryption of symencr even for non-compliant cipher. (authored by werner).
gpg: Allow decryption of symencr even for non-compliant cipher.
Mar 18 2022, 2:10 PM
Jakuje created T5885: Better message than "Inappropriate ioctl for device" for tty pinentries.
Mar 18 2022, 1:25 PM · Feature Request, pinentry, gnupg
Valodim added a watcher for Keyserver: Valodim.
Mar 18 2022, 12:28 PM
gniibe added a comment to rGd94b411f129f: common: Fix a race condition removing stale lockfile..

For the logic of detecting unlocking, it should work when h->use_o_excl == 1.

Mar 18 2022, 10:18 AM
werner raised a concern with rGd94b411f129f: common: Fix a race condition removing stale lockfile..
Mar 18 2022, 8:49 AM
cklassen added a comment to T5881: Not all keys available in Security approval window.

I had some more time to test this bug.

Mar 18 2022, 8:48 AM · Bug Report, gpgol
gniibe added a comment to T5884: dotlock is not perfect (errornously remove .lock as stale lockfile).

Before the fix above, https://bugs.debian.org/972525 can be explained by the following scenario:

Mar 18 2022, 7:59 AM · Bug Report, gnupg (gpg23)
gniibe added a project to T5884: dotlock is not perfect (errornously remove .lock as stale lockfile): Restricted Project.

Fixed in master. Should be backported when found stable.

Mar 18 2022, 6:59 AM · Bug Report, gnupg (gpg23)
gniibe committed rGd94b411f129f: common: Fix a race condition removing stale lockfile. (authored by gniibe).
common: Fix a race condition removing stale lockfile.
Mar 18 2022, 6:57 AM
gniibe added a comment to T5884: dotlock is not perfect (errornously remove .lock as stale lockfile).

I pushed a change for t-dotlock.c for testing.

Mar 18 2022, 4:41 AM · Bug Report, gnupg (gpg23)
gniibe committed rGa30359cecb5b: common: More heavy test condition for t-dotlock.c. (authored by gniibe).
common: More heavy test condition for t-dotlock.c.
Mar 18 2022, 4:36 AM
gniibe updated the task description for T5884: dotlock is not perfect (errornously remove .lock as stale lockfile).
Mar 18 2022, 2:22 AM · Bug Report, gnupg (gpg23)
gniibe updated the task description for T5884: dotlock is not perfect (errornously remove .lock as stale lockfile).
Mar 18 2022, 2:21 AM · Bug Report, gnupg (gpg23)
gniibe triaged T5884: dotlock is not perfect (errornously remove .lock as stale lockfile) as High priority.
Mar 18 2022, 2:19 AM · Bug Report, gnupg (gpg23)

Mar 17 2022

ikloecker changed the status of T5850: Kleopatra: "Show not certified certificates" button shows any not fully valid certificates from Open to Testing.

There is a new key filter "Not certified certificates" that is selected if the button is pressed.

Mar 17 2022, 3:06 PM · Restricted Project, kleopatra, Bug Report
ikloecker committed rKLEOPATRAb6f570f57fbd: Use the key filter to check for an uncertified OpenPGP key (authored by ikloecker).
Use the key filter to check for an uncertified OpenPGP key
Mar 17 2022, 2:59 PM
ikloecker committed rKLEOPATRAe3fba1dd4dc5: Use the key cache instead of running our own keylist job (authored by ikloecker).
Use the key cache instead of running our own keylist job
Mar 17 2022, 2:59 PM
ikloecker committed rKLEOPATRA6ef300c6c7c2: Show "good" but not certified keys instead of any not valid keys (authored by ikloecker).
Show "good" but not certified keys instead of any not valid keys
Mar 17 2022, 2:59 PM
ikloecker committed rLIBKLEOc4b2a06d0041: Bump library version (authored by ikloecker).
Bump library version
Mar 17 2022, 2:58 PM
ikloecker committed rLIBKLEO7d37b6391578: Add default filter for "good", uncertified OpenPGP keys (authored by ikloecker).
Add default filter for "good", uncertified OpenPGP keys
Mar 17 2022, 2:58 PM
aheinecke triaged T5883: Kleopatra: Add GpgOL help and Group help under a new "More Documents" entry in GnuPG VS-Desktop as Normal priority.
Mar 17 2022, 12:18 PM · kleopatra
ikloecker claimed T5850: Kleopatra: "Show not certified certificates" button shows any not fully valid certificates.
Mar 17 2022, 10:13 AM · Restricted Project, kleopatra, Bug Report