Page MenuHome GnuPG
Feed All Stories

Apr 6 2021

werner committed rD72877bb4ab3d: swdb: libksba 1.5.1 (authored by werner).
swdb: libksba 1.5.1
Apr 6 2021, 12:48 PM
werner committed rK1015bea2f8a5: Release 1.5.1 (authored by werner).
Release 1.5.1
Apr 6 2021, 12:27 PM
werner committed rK88392670f4e5: Post release updates (authored by werner).
Post release updates
Apr 6 2021, 12:27 PM
werner committed rK105093943554: build: Add the usual release targets. (authored by werner).
build: Add the usual release targets.
Apr 6 2021, 12:27 PM
werner triaged T5369: GnuPG build on Apple with Clang as Low priority.
Apr 6 2021, 12:10 PM · libgcrypt, MacOS, Bug Report
werner closed T5379: Release Libksba 1.5.1 as Resolved.
Apr 6 2021, 12:09 PM · libksba, Release Info
werner triaged T5379: Release Libksba 1.5.1 as Low priority.
Apr 6 2021, 11:40 AM · libksba, Release Info
werner triaged T5377: pinentry-qt dialog cannot be raised under Linux/Wayland as Normal priority.
Apr 6 2021, 9:56 AM · pinentry, Bug Report
werner committed rGe0eefba56c16: doc: Add some error locations to DETAILS. (authored by werner).
doc: Add some error locations to DETAILS.
Apr 6 2021, 9:55 AM
werner committed rG18551c6dc2c3: gpg: Fix new pseudo option compliance_de_vs (authored by werner).
gpg: Fix new pseudo option compliance_de_vs
Apr 6 2021, 9:34 AM
werner added a comment to T5371: Handle invalid compliance settings.

with the next GnuPG version (2.2.28 and 2.3.0) you can do a read

Apr 6 2021, 9:25 AM · Feature Request, Restricted Project, kleopatra

Apr 5 2021

Laurent Montel <laurent.montel@kdab.com> committed rKLEOPATRAed3e486f0012: GIT_SILENT: include <cerrno> instead of <errno.h> (authored by Laurent Montel <laurent.montel@kdab.com>).
GIT_SILENT: include <cerrno> instead of <errno.h>
Apr 5 2021, 4:03 PM

Apr 4 2021

werner triaged T5347: Update Manual Kleopatra as Normal priority.
Apr 4 2021, 7:03 PM · Documentation, kleopatra
gpatel-fr added a comment to T4278: Signed mails not visible in Exchange web interface (owa).

This feature does not use Outlook per se.. It's a problem with Exchange really. An Exchange Add-in would be needed to solve it, an Outlook add-in such as Gpgol can't do anything about it..

Apr 4 2021, 4:57 PM · gpgol, Bug Report, gpg4win

Apr 2 2021

gniibe committed rC840713de1a68: cipher: Return GPG_ERR_INV_KEYLEN when wrong key length. (authored by gniibe).
cipher: Return GPG_ERR_INV_KEYLEN when wrong key length.
Apr 2 2021, 3:15 AM

Apr 1 2021

jukivili committed rCaaa30381eac3: cipher-gcm-ppc: add big-endian support (authored by jukivili).
cipher-gcm-ppc: add big-endian support
Apr 1 2021, 1:25 PM
werner committed rG8ef0f53cb001: common: Make the compliance check more robust. (authored by werner).
common: Make the compliance check more robust.
Apr 1 2021, 1:24 PM
werner committed rG9feffc03f364: gpgconf: Return a new pseudo option compliance_de_vs. (authored by werner).
gpgconf: Return a new pseudo option compliance_de_vs.
Apr 1 2021, 1:24 PM
werner committed rGa78475fbb7b6: gpgconf: Return a new pseudo option compliance_de_vs. (authored by werner).
gpgconf: Return a new pseudo option compliance_de_vs.
Apr 1 2021, 1:15 PM
werner committed rG1d1ec1146c04: common: Make the compliance check more robust. (authored by werner).
common: Make the compliance check more robust.
Apr 1 2021, 1:15 PM
jukivili committed rC1cf5a568f2b2: mpi/aarch64: use C_SYMBOL_NAME for assembly function names (authored by jukivili).
mpi/aarch64: use C_SYMBOL_NAME for assembly function names
Apr 1 2021, 12:38 PM
werner added a comment to T5377: pinentry-qt dialog cannot be raised under Linux/Wayland.

Seems that it is not a coincidence that Wayland starts with a W like Windows. ;-)

Apr 1 2021, 12:28 PM · pinentry, Bug Report
holi0317 created T5377: pinentry-qt dialog cannot be raised under Linux/Wayland.
Apr 1 2021, 12:11 PM · pinentry, Bug Report
werner added a project to T5370: Apple M1 and Symbol not found: __gcry_mpih_mul_1: arm.
Apr 1 2021, 11:07 AM · arm, MacOS, gnupg, Bug Report
werner created riscv.
Apr 1 2021, 11:07 AM
werner created ppc.
Apr 1 2021, 11:06 AM
werner created arm.
Apr 1 2021, 11:06 AM
werner created x86.
Apr 1 2021, 11:05 AM
werner triaged T5370: Apple M1 and Symbol not found: __gcry_mpih_mul_1 as Normal priority.
Apr 1 2021, 11:02 AM · arm, MacOS, gnupg, Bug Report
werner committed rGc727951a2440: card: New flag --reread for LIST. (authored by werner).
card: New flag --reread for LIST.
Apr 1 2021, 10:34 AM
werner committed rGe17d3f866057: scd:p15: New flag APP_LEARN_FLAG_REREAD. (authored by werner).
scd:p15: New flag APP_LEARN_FLAG_REREAD.
Apr 1 2021, 10:34 AM
werner committed rGff87f4e578f4: scd: New flag --reread for LEARN (authored by werner).
scd: New flag --reread for LEARN
Apr 1 2021, 10:34 AM
gniibe triaged T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt as Normal priority.
Apr 1 2021, 6:39 AM · MacOS, libgcrypt
gniibe added a comment to T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt.

IIUC... Could you please try this patch?

diff --git a/random/rndlinux.c b/random/rndlinux.c
index a7a78906..c20c5d4c 100644
--- a/random/rndlinux.c
+++ b/random/rndlinux.c
@@ -35,10 +35,13 @@
 #if defined(__APPLE__) && defined(__MACH__)
 #include <Availability.h>
 #ifdef __MAC_10_11
+#include <TargetConditionals.h>
+#if !defined(TARGET_OS_IPHONE) || TARGET_OS_IPHONE == 0
 extern int getentropy (void *buf, size_t buflen) __attribute__ ((weak_import));
 #define HAVE_GETENTROPY
 #endif
 #endif
+#endif
 #if defined(__linux__) || !defined(HAVE_GETENTROPY)
 #ifdef HAVE_SYSCALL
 # include <sys/syscall.h>
Apr 1 2021, 6:36 AM · MacOS, libgcrypt
gniibe claimed T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt.
Apr 1 2021, 5:58 AM · MacOS, libgcrypt
gniibe closed T5289: gen-lock-obj.sh uses echo -n from /bin/sh, which echos "-n" as Resolved.

Fixed in 1.42.

Apr 1 2021, 5:58 AM · MacOS, gpgrt, Bug Report

Mar 31 2021

werner committed rG1c16878efd0b: scd: Replace all assert macros by the log_assert macro. (authored by werner).
scd: Replace all assert macros by the log_assert macro.
Mar 31 2021, 7:17 PM
gouttegd closed T5360: scute: -fcommon needed when building with gcc-10 as Resolved.
Mar 31 2021, 6:53 PM · scute
cbiedl added a comment to T5360: scute: -fcommon needed when building with gcc-10.

Looks good to me: "make && make check" passes.

Mar 31 2021, 4:45 PM · scute
werner added a comment to T5328: On the (in)security of Elgamal in OpenPGP.

Our tentative plan is:

Mar 31 2021, 1:34 PM · side-channel, CVE, libgcrypt
aheinecke added a comment to T5212: Kleopatra: Check if run with elevated privileges and exit in that case.

This is a bit more complex for us. I have often noticed the pattern of Windows users that if something does not work as expected they click "Run as Administrator". When they do that once with our software our backend software gnupg is also started with elevated privileges, it might create lock files with elevated permissions it might create data files. For example a user then generates a new key, but already had some keys the public key will be placed in the existing keyring and the permissions will not be changed. But the new key files created will be created with elevated privileges. Then the user runs Kleopatra again as normal user and reports bugs because he cannot access his newly created key files.

Mar 31 2021, 1:26 PM · Feature Request, Restricted Project, kleopatra
ikloecker committed rLIBKLEOdcc4febe198d: Add tests verifying that common overrides are used for OpenPGP and S/MIME (authored by ikloecker).
Add tests verifying that common overrides are used for OpenPGP and S/MIME
Mar 31 2021, 12:31 PM
ikloecker committed rLIBKLEO499040ec8a25: Ignore protocol-specific overrides if common overrides are given (authored by ikloecker).
Ignore protocol-specific overrides if common overrides are given
Mar 31 2021, 12:31 PM
ikloecker committed rLIBKLEO023585a2fedc: Common overrides override protocol-specific resolution (authored by ikloecker).
Common overrides override protocol-specific resolution
Mar 31 2021, 12:31 PM
ikloecker committed rLIBKLEO792fcca0bff9: Add some tests for protocol-specific overrides (authored by ikloecker).
Add some tests for protocol-specific overrides
Mar 31 2021, 12:31 PM
ikloecker committed rLIBKLEO2bc9161b87de: Ignore S/MIME certificates given as OpenPGP overrides and vice versa (authored by ikloecker).
Ignore S/MIME certificates given as OpenPGP overrides and vice versa
Mar 31 2021, 12:31 PM
ikloecker committed rLIBKLEOc02af1442114: Clean up header includes (authored by ikloecker).
Clean up header includes
Mar 31 2021, 12:31 PM
ikloecker committed rLIBKLEO44f1d27b179a: Add template specialization of qCompare for GpgME::UserID::Validity (authored by ikloecker).
Add template specialization of qCompare for GpgME::UserID::Validity
Mar 31 2021, 12:31 PM
ikloecker committed rLIBKLEO1461de5f5027: Add and update some test keys and certificates (authored by ikloecker).
Add and update some test keys and certificates
Mar 31 2021, 12:31 PM
ikloecker committed rLIBKLEO7520503c48db: Remove bogus doxygen group start marker (authored by ikloecker).
Remove bogus doxygen group start marker
Mar 31 2021, 12:31 PM
werner added a comment to rSab05fb64c143: build: Bump mimimum required Automake version..

Good catch, we need to update at several places.

Mar 31 2021, 9:19 AM
werner committed rG6ca540715139: build: Require automake 1.16.3 (authored by werner).
build: Require automake 1.16.3
Mar 31 2021, 9:19 AM
werner added a comment to T5360: scute: -fcommon needed when building with gcc-10.

FWIW, in GnuPG we use

Mar 31 2021, 9:10 AM · scute
Laurent Montel <montel@kde.org> committed rLIBKLEOa7f7089409c8: GIt_SILENT: using pragma once directly (authored by Laurent Montel <montel@kde.org>).
GIt_SILENT: using pragma once directly
Mar 31 2021, 7:16 AM
Laurent Montel <montel@kde.org> committed rKLEOPATRA7f416826d92b: GIt_SILENT: using pragma once directly (authored by Laurent Montel <montel@kde.org>).
GIt_SILENT: using pragma once directly
Mar 31 2021, 7:11 AM
gpgfan added a comment to T5212: Kleopatra: Check if run with elevated privileges and exit in that case.

It seems you still don’t get what was wrong about this issue. There is no opposition to separation of roles (which is, however, a rather complex topic that involves determining a threat model and only then defining what is right or even mentoring what one must) — this is about unconcerned communication, the very way error message is written, implying that the rest steps are widely known, could be guessed or found on your own. For example, I have 20+ years of experience as a beta tester and didn’t get what was required from me to do to make Kleopatra work again, hence the outbreak. To have an example of good communication, try Veracrypt. Bottom line: software is meant to be a solution, not just pieces of code displaying windows and messing with files.

Mar 31 2021, 5:14 AM · Feature Request, Restricted Project, kleopatra
gniibe added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

I was wrong in my last comment. Escaping by another \ is needed.

Mar 31 2021, 4:09 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
gniibe committed rG8d6152a4cfd8: build: Update gpg-error.m4. (authored by gniibe).
build: Update gpg-error.m4.
Mar 31 2021, 3:38 AM
gniibe committed rCd2b3d046fc66: build: Update gpg-error.m4. (authored by gniibe).
build: Update gpg-error.m4.
Mar 31 2021, 3:35 AM
gniibe committed rE8536f82194ec: m4: Fix previous commit. (authored by gniibe).
m4: Fix previous commit.
Mar 31 2021, 3:33 AM
gniibe committed rE9b9c5dfa1020: m4: Support cross-compiling better. (authored by gniibe).
m4: Support cross-compiling better.
Mar 31 2021, 3:23 AM

Mar 30 2021

gouttegd changed the status of T5360: scute: -fcommon needed when building with gcc-10 from Open to Testing.

It should be fixed with 49ad2b0e05e3fcb8c8c2e23bb1c6063b390dee02, though I don’t have a gcc-10 to check. It does work with gcc-9.3 with -fno-common.

Mar 30 2021, 11:48 PM · scute
gouttegd committed rSab05fb64c143: build: Bump mimimum required Automake version. (authored by gouttegd).
build: Bump mimimum required Automake version.
Mar 30 2021, 11:43 PM
gouttegd committed rS49ad2b0e05e3: Do not declare global variable in header file. (authored by gouttegd).
Do not declare global variable in header file.
Mar 30 2021, 11:43 PM
werner triaged T5376: gpg --fetch-keys no longer returns non 0 exit status on failure as Normal priority.

You are coming pretty late to the party ;-). Since 2.1.0 we don't use the ancient keyserver helpers anymore but reworked the entire network access. I even doubt that I can still test with a 2.0 version.

Mar 30 2021, 8:16 PM · gnupg (gpg22), Bug Report
vStone created T5376: gpg --fetch-keys no longer returns non 0 exit status on failure.
Mar 30 2021, 6:45 PM · gnupg (gpg22), Bug Report
werner added a project to T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt: MacOS.
Mar 30 2021, 5:44 PM · MacOS, libgcrypt
werner changed the status of T5356: gnupg2 test failure on s390x from Open to Testing.
Mar 30 2021, 5:41 PM · libgcrypt, Bug Report
werner added a comment to T5356: gnupg2 test failure on s390x.

We have two or three other open issue which I would like to address before a release. FWIW, release ticket is T5305.

Mar 30 2021, 5:41 PM · libgcrypt, Bug Report
werner added a comment to T5370: Apple M1 and Symbol not found: __gcry_mpih_mul_1.

Do what ever you want with _gcry prefixed functions - this is never considered an API or ABI break. There are some exceptions for internal functions used by macros but those are clearly marked.

Mar 30 2021, 5:38 PM · arm, MacOS, gnupg, Bug Report
ikloecker closed T5357: Kleopatra fails to load as Resolved.

Good to hear that it works now.

Mar 30 2021, 5:36 PM · gpg4win, Bug Report
werner committed rG0d6f276f61c5: card: Print the key's label if available. (authored by werner).
card: Print the key's label if available.
Mar 30 2021, 5:29 PM
werner committed rG7f9126363265: scd:p15: Return labels for keys and certificates. (authored by werner).
scd:p15: Return labels for keys and certificates.
Mar 30 2021, 5:29 PM
werner added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

A PATH with spaces is too Windowish (or macOS). IIRC, we had once checks that the used directories have proper names; we can expect this for build environment. Spaces in file names are horrible from a security POV it is just to easy to get things wrong (hello ssh).

Mar 30 2021, 5:15 PM · MacOS, gpgrt, Cross-Compiler, libgcrypt
Jakuje added a comment to T5356: gnupg2 test failure on s390x.

I already backported the above for Fedora so I am not in hurry now. But I believe others might hit the same issue.

Mar 30 2021, 4:52 PM · libgcrypt, Bug Report
jukivili updated subscribers of T5356: gnupg2 test failure on s390x.

@werner Can you comment about bugfix release?

Mar 30 2021, 4:50 PM · libgcrypt, Bug Report
jukivili added a comment to T5370: Apple M1 and Symbol not found: __gcry_mpih_mul_1.

These functions are internal to library and, for example, on linux/windows builds are not externally available.

Mar 30 2021, 4:48 PM · arm, MacOS, gnupg, Bug Report
cbiedl added a comment to T5357: Kleopatra fails to load.

Admin here. I'm sorry your replies did not make it to this site but somewhere got stuck. So copying them for completeness:

Mar 30 2021, 3:35 PM · gpg4win, Bug Report
saurik added a comment to T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt.

In https://github.com/rust-random/getrandom/issues/38 they seem to have decided to use SecRandomCopyBytes on iOS, while in https://github.com/LuaJIT/LuaJIT/issues/668 they pushed https://github.com/LuaJIT/LuaJIT/commit/787736990ac3b7d5ceaba2697c7d0f58f77bb782 which I believe falls back to /dev/urandom. In both cases, they are only staring at iOS as an issue; though, it could be that using Rust at the same time as targeting an official macOS application are both rare enough to allow this to have gone two years without a rejection... making this weak_import hack not happen on iOS might be sufficient. If you do this, I recommend checking for TARGET_OS_IPHONE, not TARGET_OS_IOS, as (despite the somewhat hardware-specific sounding name) the former also encompasses tvOS and watchOS (which, if anything, will have stronger checks); I'd personally be satisfied with just some way of manually disabling getentropy by force, though (as I had been previously using ac_cv_func_getentropy=no).

Mar 30 2021, 1:08 PM · MacOS, libgcrypt
saurik added a project to T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt: libgcrypt.
Mar 30 2021, 12:41 PM · MacOS, libgcrypt
saurik renamed T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt from getentropy is forbidden on macOS but is now being forced by libgcrypt to getentropy usage is forbidden by Apple, but is now being forced by libgcrypt.
Mar 30 2021, 12:34 PM · MacOS, libgcrypt
saurik added a comment to T5268: macOS getentropy.

So, I actually just filed an issue about this work: T5375, and then found this opposing task while following through on the various commits ;P... Apple actually forbids usage of getentropy in applications they publish to their App Store (citing ITMS-90338: Non-public API usage), and so there needs to be a way to disable this weak_import. FWIW, I'm not sure if this is only on iOS or on macOS as well (I haven't gotten around to trying to publish a macOS build with the new libgcrypt yet).

Mar 30 2021, 12:34 PM · libgcrypt, MacOS
saurik updated the task description for T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt.
Mar 30 2021, 12:29 PM · MacOS, libgcrypt
saurik created T5375: getentropy usage is forbidden by Apple, but is now being forced by libgcrypt.
Mar 30 2021, 12:28 PM · MacOS, libgcrypt
werner committed rG651c07a7301c: scd:p15: For CardOS make use of ISO7816_VERIFY_NOT_NEEDED. (authored by werner).
scd:p15: For CardOS make use of ISO7816_VERIFY_NOT_NEEDED.
Mar 30 2021, 11:45 AM
werner committed rGde4d3c99aa58: scd:p15: Return the creation time of the keys. (authored by werner).
scd:p15: Return the creation time of the keys.
Mar 30 2021, 11:45 AM
aheinecke added a comment to T5374: Can't move a signed mail in Outlook from In-Mail folder to any other folder.

Very strange. Both logs show no error.

Mar 30 2021, 11:06 AM · Restricted Project, Bug Report, gpg4win
EnricoH added a comment to T5374: Can't move a signed mail in Outlook from In-Mail folder to any other folder.

Sorry, first log was without API.
This log includes API calls.

Mar 30 2021, 10:58 AM · Restricted Project, Bug Report, gpg4win
EnricoH added a comment to T5374: Can't move a signed mail in Outlook from In-Mail folder to any other folder.

Here we go. ;-)

Mar 30 2021, 10:53 AM · Restricted Project, Bug Report, gpg4win
aheinecke added a comment to T5374: Can't move a signed mail in Outlook from In-Mail folder to any other folder.

Just drag and drop it into the input field. There is also a little cloud icon that makes this explicit.

Mar 30 2021, 10:50 AM · Restricted Project, Bug Report, gpg4win
EnricoH added a comment to T5374: Can't move a signed mail in Outlook from In-Mail folder to any other folder.

Thanks for this very quick reply.

Mar 30 2021, 10:49 AM · Restricted Project, Bug Report, gpg4win
aheinecke added a comment to T5212: Kleopatra: Check if run with elevated privileges and exit in that case.

Sorry, but we are a security software. If you give any application that you run on your system root privileges then that is not a secure behavior. This kind of stuff has been deprecated with Windows Vista. Yes we changed the error to a warning as it was too zealous. I agree. It is not our place to educate users. But users should change your operating procedures. You should not handle protection worthy data on a system without privilege seperation.

Mar 30 2021, 10:36 AM · Feature Request, Restricted Project, kleopatra
saurik added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

@gniibe Note that you also need to at least add the semicolons, as BSD sed is trying to parse "gp}" as substitution flags (which, honestly, makes more forward-compatible sense than GNU sed's behavior...).

Mar 30 2021, 10:35 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
aheinecke triaged T5374: Can't move a signed mail in Outlook from In-Mail folder to any other folder as Normal priority.

Mmh, all these issues should be fixed with the most recent versions.

Mar 30 2021, 10:21 AM · Restricted Project, Bug Report, gpg4win
gniibe added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

Or, if we keep the code of newline (so that it will eventually support path with a space in future):

Mar 30 2021, 9:55 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
gniibe added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

Thank you. Sorry for the use of GNU sed extension. It could be just a whitespace, if it's OK not to support path having a space.
sed -n -e "/^libraries/{s/libraries: =//;s/:/ /gp}") should work.

Mar 30 2021, 9:42 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
EnricoH created T5374: Can't move a signed mail in Outlook from In-Mail folder to any other folder.
Mar 30 2021, 8:34 AM · Restricted Project, Bug Report, gpg4win
saurik added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

@gniibe OK, so... "worst case": I guess this worked? ;P

Mar 30 2021, 8:23 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
saurik added a comment to T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.

@gniibe Actually, I just realized that neither of the commands I provided work, as I failed to notice you were trying to also replace :'s with newlines (as I guess libraries from clang can return multiple paths). I'd momentarily edited my comment to just try to add back your colon replacement, before remembering you can't do that either: \n is a GNU sed extension. Hilariously, I'm always in contexts where I can assume I'm using bash (which isn't ok for configure), so I've never bothered to learn a technique that doesn't involve $'\n'... do you have a strategy for doing this replacement? :(

Mar 30 2021, 8:19 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt
saurik updated the task description for T5365: --with-libgpg-error-prefix doesn't affect gpgrt-config path detection.
Mar 30 2021, 8:14 AM · MacOS, gpgrt, Cross-Compiler, libgcrypt