Page MenuHome GnuPG
Feed Advanced Search

Sep 26 2017

gniibe commandeered D296: 793_sign-fix.patch.

This patch changes all the logic of finish_lookup.
It should be only when secret key lookup.
D297: 785_sign-fix.patch has been changed to do that, and it was applied to the master.

Sep 26 2017, 5:08 AM
gniibe closed D297: 785_sign-fix.patch.

Applied to master.

Sep 26 2017, 5:06 AM
gniibe closed T1967: GnuPG should select a key for signing without trying to use missing subkeys as Resolved.

Fixed in master, applying D297: 785_sign-fix.patch.
If needed, it will be in stable 2.2 branch, in future.

Sep 26 2017, 5:05 AM · gnupg (gpg22), Feature Request
gniibe committed rG0a7661129499: g10: Select a secret key by checking availability under gpg-agent. (authored by gniibe).
g10: Select a secret key by checking availability under gpg-agent.
Sep 26 2017, 4:08 AM

Sep 21 2017

gniibe added a comment to T1967: GnuPG should select a key for signing without trying to use missing subkeys.

@bluca I created a ticket for smartcard, so that this ticket can focus on the issue of available keys on host. If anything, please add comment to T3416: gpg should select available signing key on card (even with -u option).

Sep 21 2017, 2:10 AM · gnupg (gpg22), Feature Request
gniibe created T3416: gpg should select available signing key on card (even with -u option).
Sep 21 2017, 2:07 AM · Restricted Project, Feature Request, gnupg
gniibe updated the task description for T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).
Sep 21 2017, 2:03 AM · Restricted Project, gnupg, Feature Request

Sep 20 2017

gniibe added a comment to T1967: GnuPG should select a key for signing without trying to use missing subkeys.

I have updated D297: 785_sign-fix.patch patch to minimize the impact only to secret key lookup.

Sep 20 2017, 12:08 PM · gnupg (gpg22), Feature Request
gniibe updated the diff for D297: 785_sign-fix.patch.

Here is finish_lookup with want_secret flag.

Sep 20 2017, 12:05 PM
gniibe commandeered D297: 785_sign-fix.patch.

This has larger impact for key lookup.

Sep 20 2017, 12:04 PM
gniibe added a comment to T3101: GnuPG 2.2 cannot import secret keys from 1.4/2.0's secring.gpg directly (if it is expired by original expiration date).

While trying to identify the cause of this problem, I found that the import doesn't success with expired key.

Sep 20 2017, 9:12 AM · workaround, gnupg, Bug Report
gniibe removed a project from T1967: GnuPG should select a key for signing without trying to use missing subkeys: Restricted Project.

My change only addressed the use case with smartcard. So, I removed [TESTING] tag.

Sep 20 2017, 7:55 AM · gnupg (gpg22), Feature Request
gniibe closed T1983: gpg2 prefers missing secret key to available key on card as Resolved.

Now, 2.1.22 or later supports automatic selection of secret key by available key on card.
Closing.

Sep 20 2017, 7:49 AM · Bug Report, gnupg
gniibe closed T1983: gpg2 prefers missing secret key to available key on card, a subtask of T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)), as Resolved.
Sep 20 2017, 7:49 AM · Restricted Project, gnupg, Feature Request
gniibe claimed T3119: gpg: Improve public key decryption.
Sep 20 2017, 6:57 AM · gnupg (gpg23)
gniibe committed rG9f5e50e7c85a: agent: Fix cancellation handling for scdaemon. (authored by gniibe).
agent: Fix cancellation handling for scdaemon.
Sep 20 2017, 3:55 AM
gniibe committed rG2396055c0968: scd: Distinguish cancel by user and protocol error. (authored by gniibe).
scd: Distinguish cancel by user and protocol error.
Sep 20 2017, 3:11 AM

Sep 19 2017

gniibe committed rGba8afc4966cc: common: Accept the Z-suffix for yymmddThhmmssZ format. (authored by gniibe).
common: Accept the Z-suffix for yymmddThhmmssZ format.
Sep 19 2017, 9:13 AM
gniibe added a comment to T3278: explicit key expiration date/time is interpreted as UTC, is echoed back using local time, confusion ensues.

OK, I changed my own purpose. I don't touch internal representations.

Sep 19 2017, 9:08 AM · gnupg24, gnupg (gpg23), Documentation, Bug Report
gniibe committed rGeeb3da6eb717: common: Fix gnupg_wait_processes. (authored by gniibe).
common: Fix gnupg_wait_processes.
Sep 19 2017, 5:36 AM

Sep 14 2017

gniibe closed T3393: quick-key-manipulation.scm tests fail on reproducible-builds infrastructure. as Resolved.

Committed to both branches (master and 2.2), so, closing.

Sep 14 2017, 2:50 AM · Bug Report, gnupg (gpg22)

Sep 8 2017

gniibe claimed T3391: cannot import subkey that was once marked to be on a card.
Sep 8 2017, 12:48 PM · Restricted Project, gpgagent, scd, gnupg, OpenPGP, Bug Report
gniibe added a comment to T3391: cannot import subkey that was once marked to be on a card.

In GnuPG 2.1, secret keys are under control of gpg-agent. Currently, it is not deleted by gpg frontend.
Please run:

$ gpg -K --with-keygrip
Sep 8 2017, 12:48 PM · Restricted Project, gpgagent, scd, gnupg, OpenPGP, Bug Report
gniibe triaged T3393: quick-key-manipulation.scm tests fail on reproducible-builds infrastructure. as Normal priority.
Sep 8 2017, 9:20 AM · Bug Report, gnupg (gpg22)
gniibe committed rG17f764dd4972: tests: Fix a test which specifies expiration date. (authored by gniibe).
tests: Fix a test which specifies expiration date.
Sep 8 2017, 7:37 AM
gniibe added a comment to T3278: explicit key expiration date/time is interpreted as UTC, is echoed back using local time, confusion ensues.

It is pretty much confusing. When a user specify in YYYY-MM-DD format with no hh:mm:ss, it is interpreted as local time (noon of that day).
When a user adding Thh:mm:ss, it is UTC.

Sep 8 2017, 7:15 AM · gnupg24, gnupg (gpg23), Documentation, Bug Report
gniibe added a comment to T3278: explicit key expiration date/time is interpreted as UTC, is echoed back using local time, confusion ensues.

While I confirmed that GnuPG interprets YYYY-MM-DDThh:mm:ss in UTC (which should be interpret as local time according to ISO-8601), I don't know how we can fix this.
If I change the interpretation of GnuPG (possibly supporting the format with Z suffix and timezone), it may break existing script which assumes UTC.

Sep 8 2017, 6:44 AM · gnupg24, gnupg (gpg23), Documentation, Bug Report
gniibe claimed T3278: explicit key expiration date/time is interpreted as UTC, is echoed back using local time, confusion ensues.

Bug confirmed in rGa766a37290cf: Print keyid in gpg --list-packets..

Sep 8 2017, 6:24 AM · gnupg24, gnupg (gpg23), Documentation, Bug Report
gniibe added a comment to T3393: quick-key-manipulation.scm tests fail on reproducible-builds infrastructure..

When Thhmmzz is specified, no adding 12 hours, that's the intention of the code, I suppose.
However, the implementation is wrong, since the beginning (not supporting "Z" or timezone for ISO-8601. interpret the string as UTC).
I will take that, too.

Sep 8 2017, 6:23 AM · Bug Report, gnupg (gpg22)
gniibe claimed T3393: quick-key-manipulation.scm tests fail on reproducible-builds infrastructure..

I think that adding 12 hours by parse_expire_string make sense.
The test suite should be fixed.
I will.

Sep 8 2017, 6:10 AM · Bug Report, gnupg (gpg22)
gniibe added a comment to T3393: quick-key-manipulation.scm tests fail on reproducible-builds infrastructure..

In the log, I found:

Sep 8 2017, 4:18 AM · Bug Report, gnupg (gpg22)
gniibe added a comment to T3393: quick-key-manipulation.scm tests fail on reproducible-builds infrastructure..

Possibly, timezone (of build machine) matters.

Sep 8 2017, 4:04 AM · Bug Report, gnupg (gpg22)
gniibe added a comment to T3362: Prevent Smartcard from caching PIN when cache-ttl is set accordingly.

@werner , I understand your poiont.

Sep 8 2017, 2:17 AM · Feature Request

Sep 7 2017

gniibe claimed T2964: dirmngr and gpg-agent should work automatically even when GNUPGHOME is larger than sun_path.
Sep 7 2017, 12:35 AM · Stalled, scd, gpgagent, Bug Report, gnupg, dirmngr

Sep 6 2017

gniibe triaged T3386: gnupg: make check fails on cygwin on 64-bit Windows as Low priority.

Please try this patch:

Sep 6 2017, 11:45 AM · Windows 64, gnupg, Bug Report
gniibe triaged T3384: general ipc error building libassuan on cygwin as Low priority.
Sep 6 2017, 11:32 AM · Windows, libassuan, Bug Report
gniibe changed the status of T3384: general ipc error building libassuan on cygwin from Open to Testing.
Sep 6 2017, 11:31 AM · Windows, libassuan, Bug Report
gniibe added a comment to T3384: general ipc error building libassuan on cygwin.

Please try: rA87c2bb5708ff: We can't support fd passing, if the system doesn't support it.
It disables the particular test.

Sep 6 2017, 11:31 AM · Windows, libassuan, Bug Report
gniibe claimed T3384: general ipc error building libassuan on cygwin.

I think that file descriptor passing is not supported on Cygwin.
We should disable the feature of libassuan.

Sep 6 2017, 11:29 AM · Windows, libassuan, Bug Report
gniibe committed rA87c2bb5708ff: We can't support fd passing, if the system doesn't support it. (authored by gniibe).
We can't support fd passing, if the system doesn't support it.
Sep 6 2017, 11:28 AM
gniibe abandoned D380: 963_src_assuan-socket_INADDR_LOOPBACK.patch.
Sep 6 2017, 8:44 AM
gniibe commandeered D380: 963_src_assuan-socket_INADDR_LOOPBACK.patch.

I applied the change to libassuan.

Sep 6 2017, 8:44 AM
gniibe accepted D380: 963_src_assuan-socket_INADDR_LOOPBACK.patch.

Don't need to check macOS version. Simply, if it's not defined, define INADDR_LOOPBACK.
That's better. Because it can support other cases.

Sep 6 2017, 8:42 AM
gniibe closed T2447: macport compile failed in libassuan-2.4.3 due to undefine _POSIX_C_SOURCE as Resolved.

It will be in the next release (2.4.4).
Thanks for reporting.

Sep 6 2017, 8:40 AM · MacOS, Bug Report, libassuan
gniibe committed rA87473cd29ca9: Define INADDR_LOOPBACK if not defined. (authored by gniibe).
Define INADDR_LOOPBACK if not defined.
Sep 6 2017, 8:38 AM
gniibe claimed T2447: macport compile failed in libassuan-2.4.3 due to undefine _POSIX_C_SOURCE.

The description of this bug report is not correct.
_POSIX_C_SOURCE should *not* be defined to use INADDR_LOOPBACK for the system.

Sep 6 2017, 8:37 AM · MacOS, Bug Report, libassuan
gniibe closed T3371: Ohhhh jeeee: ... this is a bug (getkey.c:3284:merge_selfsigs) as Resolved.

With following files, I managed to emulate similar experiment. My intention is to replicate.

Sep 6 2017, 4:07 AM · Bug Report

Sep 5 2017

gniibe added a comment to T3371: Ohhhh jeeee: ... this is a bug (getkey.c:3284:merge_selfsigs).

For me, I cannot replicate this issue with 2.1.20, either.

Sep 5 2017, 12:32 PM · Bug Report
gniibe added a comment to T3371: Ohhhh jeeee: ... this is a bug (getkey.c:3284:merge_selfsigs).

I tried to reproduce the problem with gpg-2.1.22 or later, but I couldn't.
What I did was:
(1) Prepare expired key of 2D182910, by removing three signature of current public key.
(2) Set "ultimate" trust with the key.
(3) Import current public key of 2D182910.

Sep 5 2017, 12:10 PM · Bug Report
gniibe added a comment to T3362: Prevent Smartcard from caching PIN when cache-ttl is set accordingly.

For the record, the authentication status reset by VERIFY command was introduced in OpenPGPcard specification V2.2.
I think V3 card supports that.
Gnuk 1.2 supports this reset feature.

Sep 5 2017, 8:58 AM · Feature Request
gniibe added a comment to T3362: Prevent Smartcard from caching PIN when cache-ttl is set accordingly.

Yes. For the use case of GnuPG, it is better to support disabling (unauthorize) use of keys.
On the other hand, IIUC, the original OpenPGPcard implementation is designed/implemented under the influence of other smartcard usages.

Sep 5 2017, 8:55 AM · Feature Request
gniibe added a comment to T3362: Prevent Smartcard from caching PIN when cache-ttl is set accordingly.

Unfortunately, not all OpenPGPcard implementations support command to unauthorize use of keys.

Sep 5 2017, 3:55 AM · Feature Request
gniibe added a parent task for T3383: scdaemon option 'card-timeout' does not have any effect: T3362: Prevent Smartcard from caching PIN when cache-ttl is set accordingly.
Sep 5 2017, 3:50 AM · Documentation, scd, Bug Report
gniibe added a subtask for T3362: Prevent Smartcard from caching PIN when cache-ttl is set accordingly: T3383: scdaemon option 'card-timeout' does not have any effect.
Sep 5 2017, 3:50 AM · Feature Request
gniibe claimed T3383: scdaemon option 'card-timeout' does not have any effect.

Let me explain the situation.

Sep 5 2017, 3:49 AM · Documentation, scd, Bug Report

Aug 31 2017

gniibe closed T3027: gpg-agent crash on macOS Sierra triggerd by ssh as Resolved.

Given no feedback, I'm closing this issue.
If there is still problem, please reopen.

Aug 31 2017, 10:26 AM · Bug Report, gpgagent, gnupg

Aug 29 2017

gniibe added a comment to T3375: t-secmem test failure on ppc64le / musl c-library.

In Fedora, they use this patch:
https://src.fedoraproject.org/rpms/libgcrypt/blob/6c13b08816b206b3ff2bab09fe55157cb3417fd1/f/libgcrypt-1.8.0-build.patch

Aug 29 2017, 12:13 PM · libgcrypt, Bug Report
gniibe committed rCe4dc458b0b7d: Tweak GCC version check. (authored by gniibe).
Tweak GCC version check.
Aug 29 2017, 9:13 AM
gniibe committed rC8126a6717c80: random: Fix warnings on Windows. (authored by gniibe).
random: Fix warnings on Windows.
Aug 29 2017, 9:13 AM
gniibe committed rCa848ef44470a: tests: Fix warnings on Windows. (authored by gniibe).
tests: Fix warnings on Windows.
Aug 29 2017, 9:13 AM
gniibe committed rGff7ccd284c32: scd: Fix for large ECC keys. (authored by gniibe).
scd: Fix for large ECC keys.
Aug 29 2017, 7:42 AM
gniibe committed rCdb3a8d6890fb: ecc: Fix scratch MPI. (authored by gniibe).
ecc: Fix scratch MPI.
Aug 29 2017, 3:36 AM
gniibe closed T3358: Curve specific field computation routines as Resolved.

Pushed for master.

Aug 29 2017, 3:15 AM · libgcrypt
gniibe committed rC1d5f726668b9: ecc: Fix ec_mulm_25519. (authored by gniibe).
ecc: Fix ec_mulm_25519.
Aug 29 2017, 3:15 AM
gniibe committed rC1ac3d3637dd8: ecc: Clean up curve specific method support. (authored by gniibe).
ecc: Clean up curve specific method support.
Aug 29 2017, 3:15 AM
gniibe committed rCfab712d654b2: ecc: Use 25519 method also for ed25519. (authored by gniibe).
ecc: Use 25519 method also for ed25519.
Aug 29 2017, 3:15 AM
gniibe committed rCe9be23c4ad9f: ecc: Relax condition for 25519 computations. (authored by gniibe).
ecc: Relax condition for 25519 computations.
Aug 29 2017, 3:15 AM
gniibe committed rC449459a2770d: ecc: Fix ec_mulm_25519. (authored by gniibe).
ecc: Fix ec_mulm_25519.
Aug 29 2017, 3:15 AM
gniibe committed rC9ed0fb37bd63: ecc: field specific routines for 25519. (authored by gniibe).
ecc: field specific routines for 25519.
Aug 29 2017, 3:15 AM
gniibe committed rCd4cd381defe5: ecc: Add field specific computation methods. (authored by gniibe).
ecc: Add field specific computation methods.
Aug 29 2017, 3:15 AM

Aug 23 2017

gniibe committed rC8728d5e6cb18: ecc: Fix ec_mulm_25519. (authored by gniibe).
ecc: Fix ec_mulm_25519.
Aug 23 2017, 6:04 AM
gniibe added a comment to T3358: Curve specific field computation routines.

Bonus: less memory usage and performance improvement.

Aug 23 2017, 5:52 AM · libgcrypt
gniibe committed rC5bbe5e9505b9: ecc: Use 25519 method also for ed25519. (authored by gniibe).
ecc: Use 25519 method also for ed25519.
Aug 23 2017, 5:51 AM
gniibe committed rCf6a34d84aeb2: ecc: Clean up curve specific method support. (authored by gniibe).
ecc: Clean up curve specific method support.
Aug 23 2017, 5:45 AM
gniibe committed rC2b1ba75e108c: ecc: Relax condition for 25519 computations. (authored by gniibe).
ecc: Relax condition for 25519 computations.
Aug 23 2017, 4:13 AM
gniibe committed rCaeca1f0afc90: ecc: Fix ec_mulm_25519. (authored by gniibe).
ecc: Fix ec_mulm_25519.
Aug 23 2017, 3:24 AM
gniibe committed rC02444ab2adde: ecc: field specific routines for 25519. (authored by gniibe).
ecc: field specific routines for 25519.
Aug 23 2017, 1:53 AM

Aug 22 2017

gniibe committed rGe6fa6b0ce823: po: Update Japanese translation (authored by gniibe).
po: Update Japanese translation
Aug 22 2017, 4:24 AM

Aug 21 2017

gniibe committed rC9e8f32241358: ecc: Add field specific computation methods. (authored by gniibe).
ecc: Add field specific computation methods.
Aug 21 2017, 8:13 AM
gniibe created T3358: Curve specific field computation routines.
Aug 21 2017, 7:29 AM · libgcrypt

Aug 18 2017

gniibe created T3353: Session env vars and environment variables for gpg.
Aug 18 2017, 3:49 AM · gnupg (gpg22), Documentation, Bug Report

Aug 8 2017

gniibe reopened T1967: GnuPG should select a key for signing without trying to use missing subkeys as "Open".

Re-opening.

Aug 8 2017, 4:31 PM · gnupg (gpg22), Feature Request

Aug 3 2017

gniibe closed T3206: npth-1.3 failed to build on NetBSD-7 as Resolved.

For me, it works. Please re-open if you still have any issue for NetBSD.

Aug 3 2017, 2:46 AM · npth, Bug Report

Aug 1 2017

gniibe added a subtask for T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)): T3119: gpg: Improve public key decryption.
Aug 1 2017, 8:46 AM · Restricted Project, Feature Request, gnupg
gniibe added a parent task for T3119: gpg: Improve public key decryption: T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).
Aug 1 2017, 8:46 AM · gnupg (gpg23)
gniibe closed T1967: GnuPG should select a key for signing without trying to use missing subkeys as Resolved.

It's there in GnuPG 2.1 for a while, and bugs introduced by change were fixed.
So, I'm closing this bug.

Aug 1 2017, 8:42 AM · gnupg (gpg22), Feature Request
gniibe added a comment to T1983: gpg2 prefers missing secret key to available key on card.

@fogine , I'm afraid your comment is related to this bug particular report of T1983: gpg2 prefers missing secret key to available key on card.
And your problem cannot be replicated by my environment with 2.1.22.
If you still have the issue with 2.1.22, please open new ticket.

Aug 1 2017, 8:38 AM · Bug Report, gnupg
gniibe added a comment to T1828: card-edit/fetch assumes signing key is master key and fails if not.

I think that this issue is fixed in 2.1, which use KS_FETCH instead of KS_GET with fingerprint.
Please test with 2.1.
We don't change 2.0.

Aug 1 2017, 8:27 AM · Bug Report, gnupg
gniibe added a comment to T3286: card: Yubikey factory-reset failure .

D441: card: Yubikey factory-reset failure is the patch.

Aug 1 2017, 7:24 AM · gnupg (gpg22), scd
gniibe created D441: card: Yubikey factory-reset failure.
Aug 1 2017, 7:24 AM
gniibe added a comment to T3286: card: Yubikey factory-reset failure .

This may fix the problem for new version 4.2.7:

Aug 1 2017, 6:36 AM · gnupg (gpg22), scd
gniibe updated subscribers of T3286: card: Yubikey factory-reset failure .
Aug 1 2017, 6:33 AM · gnupg (gpg22), scd
gniibe committed rG02b571947b94: po: Update Japanese translation (authored by gniibe).
po: Update Japanese translation
Aug 1 2017, 5:32 AM
gniibe committed rGfde9a8cc6c84: Simple typo fix. (authored by gniibe).
Simple typo fix.
Aug 1 2017, 5:32 AM
gniibe closed T3192: gpg returns with non-zero exit status after successful run when using disable-scdaemon as Resolved.

Fixed in 2.1.22.

Aug 1 2017, 4:59 AM · gnupg (gpg21), Bug Report
gniibe closed T3192: gpg returns with non-zero exit status after successful run when using disable-scdaemon, a subtask of T1983: gpg2 prefers missing secret key to available key on card, as Resolved.
Aug 1 2017, 4:59 AM · Bug Report, gnupg

Jul 31 2017

gniibe added a comment to T3027: gpg-agent crash on macOS Sierra triggerd by ssh.

GnuPG 2.1.22 in Homebrew is out: https://github.com/Homebrew/homebrew-core/commit/39a392ffd6ac20a36ea8a4aec5c4dc5febcfc1d6
Please check it out.

Jul 31 2017, 2:02 AM · Bug Report, gpgagent, gnupg

Jul 25 2017

gniibe created T3300: scd: Support multiple readers by PC/SC driver.
Jul 25 2017, 11:32 AM · Restricted Project, gnupg (gpg23), scd
gniibe committed rD329cb28391f7: campaign: Fix Japanese translation. (authored by gniibe).
campaign: Fix Japanese translation.
Jul 25 2017, 11:31 AM
gniibe committed rCb7cd44335d9c: sexp: Add fall through annotation. (authored by gniibe).
sexp: Add fall through annotation.
Jul 25 2017, 8:27 AM