Page MenuHome GnuPG
Feed Advanced Search

Apr 24 2017

gniibe added a comment to T3096: Arch Linux Keys bug.

Thanks a lot!

Apr 24 2017, 6:30 AM · In Progress, Arch, gnupg (gpg21)

Apr 21 2017

gniibe added a comment to T3096: Arch Linux Keys bug.

Thank you for additional info.
gpg --recv-keys can fail when we have network problem or dirmngr doesn't work well.
I think that the failure of your original report is that it goes something wrong when it merge keys into existing keys.
It helps me if you have the pubring.gpg BEFORE you invoked "pacman-key --refresh-keys".

Apr 21 2017, 4:26 AM · In Progress, Arch, gnupg (gpg21)
gniibe added projects to T3089: macOS - use OpenDirectory Framework: dirmngr, gnupg (gpg21).
Apr 21 2017, 1:53 AM · gnupg24, gnupg (gpg23), dirmngr, MacOS
gniibe added a project to T3099: nPth is ready for new release of 1.4: g10code Sprint (KW 16).
Apr 21 2017, 1:51 AM · g10code Sprint (KW 20), npth
gniibe updated the task description for T3099: nPth is ready for new release of 1.4.
Apr 21 2017, 1:50 AM · g10code Sprint (KW 20), npth
gniibe updated the task description for T3099: nPth is ready for new release of 1.4.
Apr 21 2017, 1:49 AM · g10code Sprint (KW 20), npth
gniibe added a parent task for T2886: nPth often needs -lpthread but does not detect this: T3099: nPth is ready for new release of 1.4.
Apr 21 2017, 1:46 AM · In Progress, Bug Report, npth
gniibe added subtasks for T3099: nPth is ready for new release of 1.4: T2886: nPth often needs -lpthread but does not detect this, T2998: link error in tests on NetBSD, T2202: struct timespec is already defined in MINGW32.
Apr 21 2017, 1:46 AM · g10code Sprint (KW 20), npth
gniibe added a parent task for T2998: link error in tests on NetBSD: T3099: nPth is ready for new release of 1.4.
Apr 21 2017, 1:46 AM · In Progress, Bug Report, npth
gniibe added a parent task for T2202: struct timespec is already defined in MINGW32: T3099: nPth is ready for new release of 1.4.
Apr 21 2017, 1:46 AM · In Progress, Bug Report, Windows, npth
gniibe created T3099: nPth is ready for new release of 1.4.
Apr 21 2017, 1:42 AM · g10code Sprint (KW 20), npth

Apr 20 2017

gniibe added a comment to T2984: Windows: Unable to import CRL.

This is what I noticed. This patch makes dirmngr and t-crl-parser both use same reader:

Apr 20 2017, 3:16 PM · Bug Report, gpg4win
gniibe triaged T3098: gnupg-2.1.20: build fix for Solaris as Normal priority.
Apr 20 2017, 1:54 PM · In Progress, gnupg (gpg21)
gniibe added projects to T3098: gnupg-2.1.20: build fix for Solaris: gnupg (gpg21), In Progress.
Apr 20 2017, 1:54 PM · In Progress, gnupg (gpg21)
gniibe claimed T3098: gnupg-2.1.20: build fix for Solaris.

Thanks for the report.
Fixed in rG10519270d365: g13: Fix for Solaris.

Apr 20 2017, 1:49 PM · In Progress, gnupg (gpg21)
gniibe committed rG10519270d365: g13: Fix for Solaris. (authored by gniibe).
g13: Fix for Solaris.
Apr 20 2017, 1:48 PM
gniibe added a comment to T2984: Windows: Unable to import CRL.

I manually parse email-ca-2013.crl:

Apr 20 2017, 1:36 PM · Bug Report, gpg4win
gniibe claimed T2202: struct timespec is already defined in MINGW32.
Apr 20 2017, 9:41 AM · In Progress, Bug Report, Windows, npth
gniibe edited projects for T2202: struct timespec is already defined in MINGW32, added: In Progress; removed Windows 64, Windows 32.

I confirmed that mingw-w64 version 1.0 defines timespec.
So, for older versions of mingw-w64, we need a fix to avoid errors.
But, your suggestion of __MINGW32__ != 1 seems wrong to me (I think it is always defined as 1).

Apr 20 2017, 9:41 AM · In Progress, Bug Report, Windows, npth
gniibe committed rPTH217bc1c6aaba: w32: Change the condition for struct timespec. (authored by gniibe).
w32: Change the condition for struct timespec.
Apr 20 2017, 9:39 AM
gniibe claimed T1983: gpg2 prefers missing secret key to available key on card.
Apr 20 2017, 8:07 AM · Bug Report, gnupg
gniibe claimed T2898: Option to ignore card serial number (to be able to use backup tokens containing same subkeys).
Apr 20 2017, 8:07 AM · gnupg, Feature Request
gniibe added a subtask for T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)): T2898: Option to ignore card serial number (to be able to use backup tokens containing same subkeys).
Apr 20 2017, 8:07 AM · Restricted Project, Feature Request, gnupg
gniibe added a parent task for T2898: Option to ignore card serial number (to be able to use backup tokens containing same subkeys): T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).
Apr 20 2017, 8:07 AM · gnupg, Feature Request
gniibe added a subtask for T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)): T1983: gpg2 prefers missing secret key to available key on card.
Apr 20 2017, 8:06 AM · Restricted Project, Feature Request, gnupg
gniibe added a parent task for T1983: gpg2 prefers missing secret key to available key on card: T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).
Apr 20 2017, 8:06 AM · Bug Report, gnupg
gniibe reopened T1983: gpg2 prefers missing secret key to available key on card as "Open".

Sorry, merging/closing is not good. This should be a subtask of T2291.

Apr 20 2017, 8:06 AM · Bug Report, gnupg
gniibe added a comment to T3025: t-recsel on make check in gnupg-2.1.19 fails.

Do you configure your libraries?
Please check your system if you have ilbgcrypt 1.7.6 runtime library.
I mean: LD_LIBRARY_PATH and ldconfig.

Apr 20 2017, 7:59 AM · Info Needed, gnupg (gpg21)
gniibe added a comment to T1983: gpg2 prefers missing secret key to available key on card.

We need to change how to access scdaemon from gpg frontend. Thus, I merge this to T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)), setting its priority to High. Please continue at T2291.

Apr 20 2017, 7:49 AM · Bug Report, gnupg
gniibe raised the priority of T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)) from Normal to High.
Apr 20 2017, 7:48 AM · Restricted Project, Feature Request, gnupg
gniibe merged task T1983: gpg2 prefers missing secret key to available key on card into T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).
Apr 20 2017, 7:47 AM · Bug Report, gnupg
gniibe merged T1983: gpg2 prefers missing secret key to available key on card into T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).
Apr 20 2017, 7:47 AM · Restricted Project, Feature Request, gnupg
gniibe added a comment to T2984: Windows: Unable to import CRL.

GPG_ERR_INV_CRL_OBJ is only possible by libksba.
I'd suggest enabling debug option for dirmngr by .gnupg/dirmngr.conf:

log-file SOMEWHERE
debug-level {basic,advanced,expert,guru} # Chose one
debug-all

to investigate what's going on.

Apr 20 2017, 6:30 AM · Bug Report, gpg4win
gniibe added a comment to T3096: Arch Linux Keys bug.

Odd. I used the pubring.gpg you uploaded.
Refresh-keys successfully retrieve keys like:

Apr 20 2017, 4:20 AM · In Progress, Arch, gnupg (gpg21)
gniibe added a comment to T3096: Arch Linux Keys bug.

Thanks. But it's wrong keyring, I suppose. What we need is not your own public keyring, but the public keyring which pacman uses.
IIUC, please upload the one in /etc/pacman.d/gnupg.

Apr 20 2017, 3:48 AM · In Progress, Arch, gnupg (gpg21)
gniibe triaged T3096: Arch Linux Keys bug as Normal priority.
Apr 20 2017, 1:31 AM · In Progress, Arch, gnupg (gpg21)
gniibe added a project to T3096: Arch Linux Keys bug: Info Needed.

Could you please give us more information so that we can locate the issue?
I did following, but I can't replicate the problem.
(1) Save 91 of key fingerprints listed in your log to a file (arch-keys.txt). From B61DBCE10901C163 to AF7EF7873CFD4BB6
(2) Make a new directory (arch-test).
(3) Run a command

$ gpg --homedir=arch-test --recv-keys $(cat arch-keys.txt )
Apr 20 2017, 1:29 AM · In Progress, Arch, gnupg (gpg21)

Apr 19 2017

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

Yes, 2.1.20 has the issue, too.
The crash report can be explained as: if the double-free can occur when multiple threads access to the cache at the same time, allocation in md_open may crash.

Apr 19 2017, 9:58 AM · Bug Report, gpgagent, gnupg
gniibe committed rEa8d267a72203: Minor clean up. (authored by gniibe).
Minor clean up.
Apr 19 2017, 7:14 AM

Apr 18 2017

gniibe committed rG4b2581dc0ea1: dirmngr: Fix final close of LISTEN_FD. (authored by gniibe).
dirmngr: Fix final close of LISTEN_FD.
Apr 18 2017, 2:05 AM
gniibe committed rG0d0a7efa8fa0: dirmngr: Fix API difference for Windows. (authored by gniibe).
dirmngr: Fix API difference for Windows.
Apr 18 2017, 2:05 AM
gniibe added a comment to T3089: macOS - use OpenDirectory Framework.

Or provide an option to disable LDAP: T2908: dirmngr can't be build w/o LDAP

Apr 18 2017, 1:17 AM · gnupg24, gnupg (gpg23), dirmngr, MacOS
gniibe created T3089: macOS - use OpenDirectory Framework.
Apr 18 2017, 1:14 AM · gnupg24, gnupg (gpg23), dirmngr, MacOS

Apr 17 2017

gniibe committed rG9296aed4bd2a: agent: More minor change. (authored by gniibe).
agent: More minor change.
Apr 17 2017, 1:04 PM
gniibe committed rG45c52cca1401: agent: Minor cleanup. (authored by gniibe).
agent: Minor cleanup.
Apr 17 2017, 9:45 AM
gniibe committed rGb9440aa3693a: tests: Minor memory fix. (authored by gniibe).
tests: Minor memory fix.
Apr 17 2017, 2:45 AM
gniibe committed rG256e861bce3d: g10: Fix parse_ring_trust. (authored by gniibe).
g10: Fix parse_ring_trust.
Apr 17 2017, 2:45 AM
gniibe committed rG0dec0cc281df: g10: Minor fixes. (authored by gniibe).
g10: Minor fixes.
Apr 17 2017, 2:19 AM
gniibe committed rGaf5f8ecf51f5: g10: Fix import/export filter property match. (authored by gniibe).
g10: Fix import/export filter property match.
Apr 17 2017, 2:19 AM

Apr 14 2017

gniibe committed rG36c4e540f1a4: agent: Clean up error initialize/return. (authored by gniibe).
agent: Clean up error initialize/return.
Apr 14 2017, 7:50 AM
gniibe renamed T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)) from Shadowed private key design (for smartcard) to Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).
Apr 14 2017, 3:54 AM · Restricted Project, Feature Request, gnupg
gniibe added a comment to T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).

Yes, there are two things to implement; How gpg frontend use gpg-agent (1 in Werner's comment), and new shadowed key format support (2 in Werner's comment).

Apr 14 2017, 3:53 AM · Restricted Project, Feature Request, gnupg
gniibe merged task T1798: request: smartcard stub keys with multiple serial numbers into T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).
Apr 14 2017, 2:50 AM · gnupg, Feature Request
gniibe merged T1798: request: smartcard stub keys with multiple serial numbers into T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).
Apr 14 2017, 2:50 AM · Restricted Project, Feature Request, gnupg
gniibe claimed T1798: request: smartcard stub keys with multiple serial numbers.

Thanks for suggestion. I'm sorry that I haven't caught this report. Now, it's assigned to me.
This is merged to T2291: Smartcard interaction improvement (was: Shadowed private key design (for smartcard)).

Apr 14 2017, 2:49 AM · gnupg, Feature Request
gniibe committed rGadb77d095b39: dirmngr: More fix for test program. (authored by gniibe).
dirmngr: More fix for test program.
Apr 14 2017, 2:19 AM
gniibe committed rG4771bad610eb: dirmngr: More fix for Windows. (authored by gniibe).
dirmngr: More fix for Windows.
Apr 14 2017, 1:36 AM

Apr 13 2017

gniibe committed rG86dcb03134fd: dirmngr: Fix http.c for sockaddr_storage. (authored by gniibe).
dirmngr: Fix http.c for sockaddr_storage.
Apr 13 2017, 7:48 AM
gniibe committed rG37018adce6ea: dirmngr: Fix thread key type. (authored by gniibe).
dirmngr: Fix thread key type.
Apr 13 2017, 7:38 AM
gniibe committed rG892b33bb2c57: dirmngr: Fix alignment of ADDR. (authored by gniibe).
dirmngr: Fix alignment of ADDR.
Apr 13 2017, 7:38 AM
gniibe committed rG74258278efac: common, g10: Fix enumeration types. (authored by gniibe).
common, g10: Fix enumeration types.
Apr 13 2017, 6:00 AM
gniibe committed rG5af104b541ed: dirmngr: More fix for Windows. (authored by gniibe).
dirmngr: More fix for Windows.
Apr 13 2017, 2:53 AM

Apr 12 2017

gniibe committed rG6755b3b505f7: dirmngr: Fix type of sock. (authored by gniibe).
dirmngr: Fix type of sock.
Apr 12 2017, 1:52 PM
gniibe committed rGf52f6af834cc: tools: Fix condition for gpg-connect-agent. (authored by gniibe).
tools: Fix condition for gpg-connect-agent.
Apr 12 2017, 9:07 AM
gniibe committed rG7ae1857c90ab: dirmngr: Fix possible null reference. (authored by gniibe).
dirmngr: Fix possible null reference.
Apr 12 2017, 9:07 AM
gniibe committed rG7b4edf14bb16: common: Simplify format_text. (authored by gniibe).
common: Simplify format_text.
Apr 12 2017, 7:51 AM
gniibe committed rG7f9032d4a8ce: gpgscm: Fix test program. (authored by gniibe).
gpgscm: Fix test program.
Apr 12 2017, 5:07 AM
gniibe committed rG60d9a9e6b4ae: dirmngr: Fix plus1_ns. (authored by gniibe).
dirmngr: Fix plus1_ns.
Apr 12 2017, 4:50 AM
gniibe added a project to T3083: Smartcard access may fail with error "Invalid Value" after resuming system from suspend: In Progress.

By the commit: rGf053f99ed0b0: scd: Handle unexpected suspend/resume by CCID driver., I put some code to handle such an expected return from the device.
Please try.
I couldn't reproduce this on my machine. (Suspend-to-RAM keeps my USB device running.)

Apr 12 2017, 4:28 AM · Restricted Project, gnupg (gpg22), scd
gniibe committed rGf053f99ed0b0: scd: Handle unexpected suspend/resume by CCID driver. (authored by gniibe).
scd: Handle unexpected suspend/resume by CCID driver.
Apr 12 2017, 4:22 AM
gniibe committed rGbd0c94939faf: dirmngr: Fix dns-stuff.c in another way. (authored by gniibe).
dirmngr: Fix dns-stuff.c in another way.
Apr 12 2017, 3:22 AM
gniibe added a reverting change for rG1538523156be: dirmngr: Fix dns-stuff.c.: rG0b904ddea8bd: Revert "dirmngr: Fix dns-stuff.c.".
Apr 12 2017, 3:22 AM
gniibe added a reverted change for rG0b904ddea8bd: Revert "dirmngr: Fix dns-stuff.c.": rG1538523156be: dirmngr: Fix dns-stuff.c..
Revert "dirmngr: Fix dns-stuff.c."
Apr 12 2017, 3:22 AM
gniibe committed rG1538523156be: dirmngr: Fix dns-stuff.c. (authored by gniibe).
dirmngr: Fix dns-stuff.c.
Apr 12 2017, 2:51 AM
gniibe committed rGc64763c3a74e: agent: Simplify stream_read_cstring. (authored by gniibe).
agent: Simplify stream_read_cstring.
Apr 12 2017, 2:51 AM
gniibe committed rG64904ce627b6: dirmngr: Use a function to increment network short. (authored by gniibe).
dirmngr: Use a function to increment network short.
Apr 12 2017, 2:51 AM
gniibe committed rG05218829589f: g10: Minor clean up for export.c. (authored by gniibe).
g10: Minor clean up for export.c.
Apr 12 2017, 2:51 AM

Apr 11 2017

gniibe added a comment to T3083: Smartcard access may fail with error "Invalid Value" after resuming system from suspend.

It looks like the device got suspended and resumed.
But the application (scdaemon) didn't get noticed by libusb.
So, scdaemon kept communicating as usual, but got unexpected msg type = 0x81,
which is error report status (RDR_to_PC_DataBlock).

Apr 11 2017, 1:57 PM · Restricted Project, gnupg (gpg22), scd
gniibe triaged T3083: Smartcard access may fail with error "Invalid Value" after resuming system from suspend as Normal priority.
Apr 11 2017, 1:32 PM · Restricted Project, gnupg (gpg22), scd
gniibe committed rGc3cc9551dcc8: g13: Include sys/sysmacros.h if available. (authored by gniibe).
g13: Include sys/sysmacros.h if available.
Apr 11 2017, 1:00 PM
gniibe added a comment to T3082: Ship hwdb files for USB smartcards and crypto tokens.

FWIW, the syntax of "vendor-id:product-id" is used for USB for any USB tools.

Apr 11 2017, 12:48 PM · scd
gniibe added a comment to T3082: Ship hwdb files for USB smartcards and crypto tokens.

Thank you for your comment.

Apr 11 2017, 12:23 PM · scd
gniibe added a comment to T2440: scdaemon grabs card exclusively; it'd be nice if it didn't.

Thank you for your comment.
FYI, when card is removed, scdaemon invalidates cache. So, #1 is already done.
In 2.1.x, scdaemon releases the reader when it finds the card is removed.
(Not for 2.0)

Apr 11 2017, 12:19 PM · scd, gnupg, Feature Request
gniibe claimed T3082: Ship hwdb files for USB smartcards and crypto tokens.

While I understand your request, it's complicated.

Apr 11 2017, 10:16 AM · scd
gniibe committed rG313340224116: dirmngr: Fix build for Windows. (authored by gniibe).
dirmngr: Fix build for Windows.
Apr 11 2017, 9:13 AM
gniibe committed rG03d77b60befa: g10,tools: Fix bzlib.h include order. (authored by gniibe).
g10,tools: Fix bzlib.h include order.
Apr 11 2017, 6:54 AM
gniibe committed rGf079822b2ce0: g10: Minor clean up for TOFU. (authored by gniibe).
g10: Minor clean up for TOFU.
Apr 11 2017, 5:53 AM
gniibe committed rG456c5cdb2d72: common: Portability fix for logging.c. (authored by gniibe).
common: Portability fix for logging.c.
Apr 11 2017, 4:55 AM
gniibe committed rGa1446163d584: tools: Portability fix for gpgparsemail. (authored by gniibe).
tools: Portability fix for gpgparsemail.
Apr 11 2017, 4:29 AM
gniibe removed a project from T2738: gpg crashes when attempting to write a key to a card: gnupg.

Please use GnuPG 2 (2.0 or 2.1) for using smartcard/token.
smartcard support in GnuPG 1.4 is way old and only supports shorter key length.

Apr 11 2017, 3:25 AM · Fedora, Bug Report, gnupg (gpg14)
gniibe merged task T2053: scdaemon over pcsclite holds the card even with "--card-timeout 5" into T2440: scdaemon grabs card exclusively; it'd be nice if it didn't.
Apr 11 2017, 3:20 AM · Bug Report, gnupg
gniibe merged T2053: scdaemon over pcsclite holds the card even with "--card-timeout 5" into T2440: scdaemon grabs card exclusively; it'd be nice if it didn't.
Apr 11 2017, 3:20 AM · scd, gnupg, Feature Request
gniibe lowered the priority of T1621: Support multiple cards (not just readers) from Normal to Wishlist.
Apr 11 2017, 3:18 AM · gnupg, Feature Request
gniibe merged T1113: sign + encryption OK but decryption failed with 3072 bits key on smartcard V2 into T1405: Print a warning for readers not supporting extended APDUs..
Apr 11 2017, 3:16 AM · scd, Feature Request, gnupg
gniibe merged task T1113: sign + encryption OK but decryption failed with 3072 bits key on smartcard V2 into T1405: Print a warning for readers not supporting extended APDUs..
Apr 11 2017, 3:16 AM · Not A Bug, gnupg, Feature Request, Documentation, scd
gniibe added a project to T1113: sign + encryption OK but decryption failed with 3072 bits key on smartcard V2: Not A Bug.

No way to fix, itself. Better warning/error message can be done.

Apr 11 2017, 3:13 AM · Not A Bug, gnupg, Feature Request, Documentation, scd
gniibe edited projects for T2903: "gpg --card-status" does not add any entries to the private key ring, added: Info Needed; removed yubikey.

This bug is not reproducible for me. I don't think it is Yubikey specific.
I suspect some failure for the transition from 2.0 to 2.1.
In GnuPG 2.1 the private keys are stored under the directory gnupg/private-keys-v1.d.
Do you have this directory?
How does it goes when you prepare another directory and specify that?
I mean:

mkdir SOME-NEW-DIRECTORY
gpg --homedir=SOME-NEW-DIRECTORY --card-status
Apr 11 2017, 3:07 AM · Info Needed, Bug Report, gnupg
gniibe removed projects from T3027: gpg-agent crash on macOS Sierra triggerd by ssh: gnupg (gpg21), ssh, MacOS.
Apr 11 2017, 2:43 AM · Bug Report, gpgagent, gnupg

Apr 10 2017

gniibe committed rG170660ed11b5: agent: Use "ll" length specifier when time_t is larger. (authored by gniibe).
agent: Use "ll" length specifier when time_t is larger.
Apr 10 2017, 8:09 AM
gniibe committed rG7501f2e9c4e6: scd: Relax a condition for p15 driver. (authored by gniibe).
scd: Relax a condition for p15 driver.
Apr 10 2017, 6:20 AM