Page MenuHome GnuPG
Feed Advanced Search

Oct 9 2019

gniibe committed rG7535f1d47a35: gpg: The first key should be in candidates. (authored by gniibe).
gpg: The first key should be in candidates.
Oct 9 2019, 2:48 AM
gniibe changed the status of T4713: Bug in get_best_pubkey_byname from Open to Testing.

I believe that constraint of ret_keyblock != NULL is OK.
Pushing the fix.
Perhaps, backport to 2.2 should be done, too.

Oct 9 2019, 2:44 AM · Restricted Project, gnupg (gpg23)

Oct 8 2019

gniibe committed rC7bbc3adc8bc7: Merge branch 'gniibe/x448' of playfair.gnupg.org:/git/libgcrypt (authored by gniibe).
Merge branch 'gniibe/x448' of playfair.gnupg.org:/git/libgcrypt
Oct 8 2019, 9:27 AM
gniibe committed rC2ec2ea3d66ff: ecc: Add Curve448. (authored by gniibe).
ecc: Add Curve448.
Oct 8 2019, 9:27 AM
gniibe committed rCd66a4856eb0c: ecc: Fix hard-coded value for 25519 to allow other modern curves. (authored by gniibe).
ecc: Fix hard-coded value for 25519 to allow other modern curves.
Oct 8 2019, 9:13 AM
gniibe committed rC13038098e099: Merge branch 'gniibe/x448' of playfair.gnupg.org:/git/libgcrypt (authored by gniibe).
Merge branch 'gniibe/x448' of playfair.gnupg.org:/git/libgcrypt
Oct 8 2019, 8:34 AM
gniibe committed rC254c5279058f: ecc: Clean up for decoding point. (authored by gniibe).
ecc: Clean up for decoding point.
Oct 8 2019, 8:27 AM
gniibe committed rC6e57242c61bc: random: Clean up unused old internal API. (authored by gniibe).
random: Clean up unused old internal API.
Oct 8 2019, 5:36 AM

Oct 7 2019

gniibe added a comment to T4713: Bug in get_best_pubkey_byname.

If we can assume ret_keyblock != NULL (it is, in current implementation), it can be as simple as:

diff --git a/g10/getkey.c b/g10/getkey.c
index 6802026f6..27bbd354c 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -1354,6 +1354,8 @@ get_best_pubkey_byname (ctrl_t ctrl, enum get_pubkey_modes mode,
   int is_mbox = is_valid_mailbox (name);
   int wkd_tried = 0;
Oct 7 2019, 3:58 AM · Restricted Project, gnupg (gpg23)
gniibe committed rGe28572116fe4: gpg: Fix a memory leak in get_best_pubkey_byname. (authored by gniibe).
gpg: Fix a memory leak in get_best_pubkey_byname.
Oct 7 2019, 3:51 AM

Oct 4 2019

gniibe added a comment to T4713: Bug in get_best_pubkey_byname.
diff --git a/g10/getkey.c b/g10/getkey.c
index de5024198..051b21203 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -1272,6 +1272,48 @@ only_expired_enc_subkeys (kbnode_t keyblock)
   return any? 1 : 0;
 }
Oct 4 2019, 8:58 AM · Restricted Project, gnupg (gpg23)
gniibe added a comment to T4713: Bug in get_best_pubkey_byname.
Oct 4 2019, 8:56 AM · Restricted Project, gnupg (gpg23)

Oct 3 2019

gniibe committed rCf55b26a500d1: ecc: Add Curve448. (authored by gniibe).
ecc: Add Curve448.
Oct 3 2019, 7:01 AM

Oct 2 2019

gniibe added a project to T4712: Keygrip broken in master for cv25519: Restricted Project.

I modified _gcry_ecc_fill_in_curve so that g_y has new value in eid4730.

Oct 2 2019, 8:29 AM · Restricted Project, Bug Report, libgcrypt
gniibe committed rC1cfe2329b91c: ecc: Fix regression in keygrip computation for cv25519 (2). (authored by gniibe).
ecc: Fix regression in keygrip computation for cv25519 (2).
Oct 2 2019, 5:07 AM

Oct 1 2019

gniibe claimed T4712: Keygrip broken in master for cv25519.

That's my badness. I think that I haven't seen this problem, because I mainly use tokens (where keygrip difference doesn't matter, after --card-status).

Oct 1 2019, 7:17 AM · Restricted Project, Bug Report, libgcrypt

Sep 29 2019

gniibe created T4713: Bug in get_best_pubkey_byname.
Sep 29 2019, 10:44 AM · Restricted Project, gnupg (gpg23)

Sep 28 2019

gniibe added a project to T4620: no support for multiple (yubikey) smartcards plugged in at the same time: Restricted Project.
Sep 28 2019, 6:53 PM · Restricted Project, Bug Report
asv awarded T4620: no support for multiple (yubikey) smartcards plugged in at the same time a Like token.
Sep 28 2019, 4:36 PM · Restricted Project, Bug Report

Sep 27 2019

gniibe renamed T4563: gpg-agent fails to sign request of PKISSH from gpg-agent fails to sign request to gpg-agent fails to sign request of PKISSH.
Sep 27 2019, 1:45 PM · Feature Request, gpgagent
gniibe edited projects for T4563: gpg-agent fails to sign request of PKISSH, added: Feature Request; removed Info Needed, Bug Report.
Sep 27 2019, 10:17 AM · Feature Request, gpgagent
gniibe added a comment to T4563: gpg-agent fails to sign request of PKISSH.

OK, I identify the problem.

Sep 27 2019, 8:23 AM · Feature Request, gpgagent

Sep 25 2019

gniibe added a comment to T4710: Cannot use Secure PIN Entry for Reset Code.

For pinpadtest.py, you need to offer an option --add (adding dummy byte), when you are using Cherry ST-2xxx.

Sep 25 2019, 1:39 PM · Not A Bug, Documentation, OpenPGP, scd, Bug Report
gniibe claimed T4710: Cannot use Secure PIN Entry for Reset Code.

It is not supported, by CCID protocol itself. So, it is not supported by scdaemon, and by any of card readers (which I know of), either.

Sep 25 2019, 12:09 PM · Not A Bug, Documentation, OpenPGP, scd, Bug Report

Sep 24 2019

gniibe committed rEf73605e03949: Fix gpg-error.c for preprocessor use. (authored by gniibe).
Fix gpg-error.c for preprocessor use.
Sep 24 2019, 1:39 PM

Sep 20 2019

gniibe committed rGbb5ed9fe1abf: build: Build gpg-pair-tool only when there is newer libgcrypt. (authored by gniibe).
build: Build gpg-pair-tool only when there is newer libgcrypt.
Sep 20 2019, 7:21 AM

Sep 19 2019

gniibe committed rG7c81e5cb97c7: tools: Fix gpg-pair-tool to follow new API. (authored by gniibe).
tools: Fix gpg-pair-tool to follow new API.
Sep 19 2019, 11:37 AM
gniibe committed rGf22a00416149: tools: Use new API of libgcrypt for gpg-pair-tool. (authored by gniibe).
tools: Use new API of libgcrypt for gpg-pair-tool.
Sep 19 2019, 11:37 AM
gniibe committed rGb928de70e072: tools: Don't prepare G in gpg-pair-tool. (authored by gniibe).
tools: Don't prepare G in gpg-pair-tool.
Sep 19 2019, 11:37 AM
gniibe changed the status of T4620: no support for multiple (yubikey) smartcards plugged in at the same time from Open to Testing.

And it is merged into master.
Along with the support of multiple readers/token, the parts which assumes Windows 32-bit are fixed, too.

Sep 19 2019, 1:30 AM · Restricted Project, Bug Report

Sep 18 2019

gniibe added a comment to T4698: Results from clang analyzer.

For argparse.c, it can be only stopped with nonnull attribute for the API, I suppose.

Sep 18 2019, 10:50 AM · gpgrt, Bug Report
gniibe committed rE46bb7eb8c554: tests: Fix deallocation of buffer in t-b64.c. (authored by gniibe).
tests: Fix deallocation of buffer in t-b64.c.
Sep 18 2019, 10:48 AM
gniibe committed rE4b8e8ba9f60c: gpgrt_setenv: Define behavior when value=NULL. (authored by gniibe).
gpgrt_setenv: Define behavior when value=NULL.
Sep 18 2019, 10:48 AM
gniibe committed rEf41991480aaa: estream: Care about erroneous case for stream close. (authored by gniibe).
estream: Care about erroneous case for stream close.
Sep 18 2019, 10:48 AM
gniibe committed rE521aeecf1e41: logging: Fix the case of using socket_dir_cb which may return NULL. (authored by gniibe).
logging: Fix the case of using socket_dir_cb which may return NULL.
Sep 18 2019, 10:48 AM
gniibe claimed T4698: Results from clang analyzer.

I take this so that libgpg-error can be released soon.

Sep 18 2019, 9:21 AM · gpgrt, Bug Report

Sep 17 2019

gniibe committed rG49671b76eae2: scd,pcsc: Use HANDLE for context and card. (authored by gniibe).
scd,pcsc: Use HANDLE for context and card.
Sep 17 2019, 1:12 PM

Sep 12 2019

gniibe committed rGc569e49d1764: scd,pcsc: Remove the restriction of no-scanning in PC/SC. (authored by gniibe).
scd,pcsc: Remove the restriction of no-scanning in PC/SC.
Sep 12 2019, 2:38 AM
gniibe committed rG980d0234d316: scd: Remove old fallback logic from CCID to PC/SC. (authored by gniibe).
scd: Remove old fallback logic from CCID to PC/SC.
Sep 12 2019, 2:38 AM
gniibe committed rG6d750fe7fc42: scd,pcsc: Support "reader-port" option for PC/SC reader. (authored by gniibe).
scd,pcsc: Support "reader-port" option for PC/SC reader.
Sep 12 2019, 2:38 AM

Sep 11 2019

gniibe claimed T4620: no support for multiple (yubikey) smartcards plugged in at the same time.

I created a branch for this task: https://dev.gnupg.org/source/gnupg/repository/gniibe%252FT4620/

Sep 11 2019, 4:39 AM · Restricted Project, Bug Report
gniibe committed rG92be4e87eec9: scd,pcsc: Fix examining the list of readers. (authored by gniibe).
scd,pcsc: Fix examining the list of readers.
Sep 11 2019, 4:06 AM
gniibe committed rG441106cdf0fd: scd,pcsc: Fix for initializing PC/SC. (authored by gniibe).
scd,pcsc: Fix for initializing PC/SC.
Sep 11 2019, 4:06 AM
gniibe committed rG1080e91efd60: scd,pcsc: Use a single context. (authored by gniibe).
scd,pcsc: Use a single context.
Sep 11 2019, 3:12 AM
gniibe committed rGe8534f899915: scd,pcsc: Support multiple card readers. (authored by gniibe).
scd,pcsc: Support multiple card readers.
Sep 11 2019, 3:12 AM
gniibe committed rGf44aa290c136: scd: Clean up the structure for future fix of PC/SC. (authored by gniibe).
scd: Clean up the structure for future fix of PC/SC.
Sep 11 2019, 3:12 AM

Sep 6 2019

gniibe added a comment to T4695: Remove SERIALNO as an identifier to select keys.

Still there are two places where we use "SCD serialno --demand <SERIALNO>". One is g10/skclist.c where we list available keys, another is the funciton card_key_available in agent/command-ssh.c .

Sep 6 2019, 1:41 AM · Restricted Project, Feature Request, gnupg
gniibe lowered the priority of T4695: Remove SERIALNO as an identifier to select keys from Unbreak Now! to High.
Sep 6 2019, 1:37 AM · Restricted Project, Feature Request, gnupg
gniibe added a comment to T4695: Remove SERIALNO as an identifier to select keys.

By the change of rG9f39e0167d06: agent: Fix ask_for_card to allow a key on multiple cards., the SERIALNO in the stub is just an auxiliary information, not identifying the card. Now, it is the keygrip for key to identify/select the card.

Sep 6 2019, 1:37 AM · Restricted Project, Feature Request, gnupg

Sep 5 2019

gniibe committed rG9f39e0167d06: agent: Fix ask_for_card to allow a key on multiple cards. (authored by gniibe).
agent: Fix ask_for_card to allow a key on multiple cards.
Sep 5 2019, 10:23 AM
gniibe added a comment to T4695: Remove SERIALNO as an identifier to select keys.

I did too many things at once.
I'm going to divide up into pieces.

Sep 5 2019, 10:12 AM · Restricted Project, Feature Request, gnupg
gniibe added a comment to T4695: Remove SERIALNO as an identifier to select keys.

Sep 5 2019, 8:04 AM · Restricted Project, Feature Request, gnupg
gniibe created T4695: Remove SERIALNO as an identifier to select keys.
Sep 5 2019, 8:04 AM · Restricted Project, Feature Request, gnupg

Sep 4 2019

clonedrad awarded T4583: pinentry-tty should accept backspace, delete, and ctrl-U a Mountain of Wealth token.
Sep 4 2019, 3:21 PM · pinentry, Restricted Project, Bug Report
gniibe committed rEcb877252c4dc: gpgrt-config: Support Libs.private and Requires.private. (authored by gniibe).
gpgrt-config: Support Libs.private and Requires.private.
Sep 4 2019, 11:19 AM

Aug 30 2019

gniibe added a comment to T4281: Backport smartcard support changes to 2.2.

For OpenPGP card v3.x, the data object is available, but it doesn't come with a button physically. So, I think it's no use.

Aug 30 2019, 12:55 AM

Aug 23 2019

gniibe committed rE157b9f6fafb6: estream: Fix gpgrt_poll at EOF. (authored by gniibe).
estream: Fix gpgrt_poll at EOF.
Aug 23 2019, 3:38 AM
gniibe committed rEab87480fc201: estream: Fix gpgrt_poll to prevent waiting indefinitely for others. (authored by gniibe).
estream: Fix gpgrt_poll to prevent waiting indefinitely for others.
Aug 23 2019, 3:38 AM

Aug 22 2019

gniibe committed rEfc1a7591bdcd: estream: Fix poll condition. (authored by gniibe).
estream: Fix poll condition.
Aug 22 2019, 4:09 PM
gniibe committed rG6f760e6eb0e8: gpg: Factor export_ssh_key. (authored by gniibe).
gpg: Factor export_ssh_key.
Aug 22 2019, 7:20 AM
gniibe committed rGe00e68135c01: dns: Fix irrelevant use of tmpfile. (authored by gniibe).
dns: Fix irrelevant use of tmpfile.
Aug 22 2019, 5:55 AM
gniibe closed T4228: Leaked FILE from tmpfile() in dns.c dns_trace_open as Resolved.

Fixed in master.

Aug 22 2019, 5:55 AM · dns, gnupg
gniibe added a comment to T4228: Leaked FILE from tmpfile() in dns.c dns_trace_open.

This part of code is questionable. It always comes fp!=NULL, so the part should be removed.
If fp==NULL, use of tmpfile is quite questionable because a user can't know where the trace output goes.
I'm going to remove that part.

Aug 22 2019, 5:54 AM · dns, gnupg
gniibe added a comment to T2669: gpg --import auto-launches gpg-agent even when no secret keys are imported.

If it makes sense to warn a user for someone's preference when keys are imported,
here is a patch:

Aug 22 2019, 4:49 AM · Bug Report, gnupg
gniibe added a comment to T4480: GPGSM: Duplicated IMPORT_OK status lines emitted.

It appears (for me) correct behavior.

Aug 22 2019, 3:52 AM · S/MIME

Aug 21 2019

gniibe committed rG6fae96094c97: scd: Fix check_application_conflict. (authored by gniibe).
scd: Fix check_application_conflict.
Aug 21 2019, 5:44 AM
gniibe committed rG8dc19d35e854: scd: Fix selecting additional APP. (authored by gniibe).
scd: Fix selecting additional APP.
Aug 21 2019, 5:02 AM
gniibe committed rG4781c4a86608: scd: Fix how select_additional_application is called. (authored by gniibe).
scd: Fix how select_additional_application is called.
Aug 21 2019, 5:02 AM
gniibe committed rGd4f135c34b33: scd: Fix switching to another APP. (authored by gniibe).
scd: Fix switching to another APP.
Aug 21 2019, 5:02 AM
gniibe committed rG09d000babb71: scd: Fix resetting CARD_CTX. (authored by gniibe).
scd: Fix resetting CARD_CTX.
Aug 21 2019, 5:02 AM

Aug 20 2019

gniibe committed rA909133baad49: libassuan.pc: Fix to have -I for Cflags and -L for Libs. (authored by gniibe).
libassuan.pc: Fix to have -I for Cflags and -L for Libs.
Aug 20 2019, 7:10 AM
gniibe committed rT35a91c4961d4: pkgconfig: Fix ntbtls.pc. (authored by gniibe).
pkgconfig: Fix ntbtls.pc.
Aug 20 2019, 6:42 AM
gniibe committed rK3df0cd32e3b2: pkgconfig: Fix ksba.pc. (authored by gniibe).
pkgconfig: Fix ksba.pc.
Aug 20 2019, 6:22 AM
gniibe committed rC761d12f140b7: pkgconfig: Fix libgcrypt.pc. (authored by gniibe).
pkgconfig: Fix libgcrypt.pc.
Aug 20 2019, 4:22 AM
gniibe added a comment to T4678: libassuan.pc missing include dir directive in cflags.

Well, gpg-error is special. For other libraries, adding -I and -L is enough and good.
Fixed in master.

Aug 20 2019, 3:55 AM · Restricted Project, libassuan
gniibe triaged T4678: libassuan.pc missing include dir directive in cflags as Normal priority.

Thank you. I only tested a configuration where installation of libassuan has same prefix as libgpg-error. That's the reason why this bug exists.

Aug 20 2019, 3:38 AM · Restricted Project, libassuan
gniibe added a comment to T2011: gnupg should notify cancellation of its operation to gpg-agent to kill pinentry.

It was fixed in GnuPG master by rGc395f8315362: agent: Terminate pinentry process gracefully, by watching socket. and rG374a0775546b: agent: Close a dialog cleanly when gpg/ssh is killed for CONFIRM..
Those will be in GnuPG 2.3.

Aug 20 2019, 3:32 AM · Bug Report, gpgagent

Aug 16 2019

gniibe claimed T2893: gnupg should used ccid card key material fingerprints and not serial number.
Aug 16 2019, 6:15 AM · yubikey, Feature Request, gnupg
gniibe committed rC900647d96cb7: build: Fix build with !HAVE_PTHREAD (authored by gniibe).
build: Fix build with !HAVE_PTHREAD
Aug 16 2019, 2:13 AM
gniibe committed rC1862f402d363: ecdsa: Fix unblinding too early. (authored by gniibe).
ecdsa: Fix unblinding too early.
Aug 16 2019, 2:13 AM
gniibe committed rCcdaeb86f067b: ecdsa: Fix unblinding too early. (authored by gniibe).
ecdsa: Fix unblinding too early.
Aug 16 2019, 2:12 AM

Aug 13 2019

gniibe claimed T4663: libgcrypt: fix build without threads by adding an option to disable tests.

Thanks for your report.
I think that adding an option for disabling tests is too much.
If it were AC_SUBST, we could use HAVE_PTHREAD in tests/Makefile.am.
In the current situation, just modifining t-lock is easier.

Aug 13 2019, 7:13 AM · libgcrypt, Bug Report
gniibe added a comment to T4670: Key expiration time ignored for zero creation date keys.

I think that I located the cause of this bug:

Aug 13 2019, 6:27 AM · patch, gnupg (gpg22), Bug Report
gniibe added projects to T4677: Failure using pinentry-tty or pinentry-curses when GnuPG's standard input is a file: Info Needed, gnupg (gpg22).
Aug 13 2019, 4:15 AM · unreproducible, gnupg (gpg22), Bug Report
gniibe added a comment to T4677: Failure using pinentry-tty or pinentry-curses when GnuPG's standard input is a file.

For my environment (Debian buster's 2.2.12 and another one from GnuPG master), both (no argument and foo) work well.
The invocation with argument let pinentry pop up to ask passphrase.

Aug 13 2019, 4:08 AM · unreproducible, gnupg (gpg22), Bug Report

Aug 12 2019

gniibe committed rC376124f86097: build: Fix testapi.c to be buildable. (authored by gniibe).
build: Fix testapi.c to be buildable.
Aug 12 2019, 10:11 AM
gniibe committed rG6e6078c8d0d4: common: Fix line break handling, finding a space. (authored by gniibe).
common: Fix line break handling, finding a space.
Aug 12 2019, 3:55 AM
gniibe committed rGa9816d5fb13e: sm: Support AES-256 key. (authored by gniibe).
sm: Support AES-256 key.
Aug 12 2019, 3:55 AM
gniibe committed rGccf5cc8b0b6c: sm: Fix error checking of decryption result. (authored by gniibe).
sm: Fix error checking of decryption result.
Aug 12 2019, 3:55 AM
gniibe committed rG64500e7f6dd6: gpg,gpgsm: Handle pkdecrypt responses with/without NUL terminators. (authored by dkg).
gpg,gpgsm: Handle pkdecrypt responses with/without NUL terminators.
Aug 12 2019, 3:55 AM
gniibe committed rGf8961a576d3b: scd: Fix bBWI value. (authored by gniibe).
scd: Fix bBWI value.
Aug 12 2019, 3:55 AM
gniibe committed rG879660bf4581: scd: Handle CCID bwi of time extension. (authored by gniibe).
scd: Handle CCID bwi of time extension.
Aug 12 2019, 3:55 AM
gniibe committed rG8e0167698120: card: Fix showing KDF object attribute. (authored by gniibe).
card: Fix showing KDF object attribute.
Aug 12 2019, 3:55 AM

Aug 9 2019

gniibe committed rCdb4e9976cc31: dsa,ecdsa: Fix use of nonce, use larger one. (authored by gniibe).
dsa,ecdsa: Fix use of nonce, use larger one.
Aug 9 2019, 2:21 AM

Aug 8 2019

gniibe committed rC7c2943309d14: dsa,ecdsa: Fix use of nonce, use larger one. (authored by gniibe).
dsa,ecdsa: Fix use of nonce, use larger one.
Aug 8 2019, 10:53 AM

Aug 7 2019

gniibe committed rCd5407b78cca9: ecc: Add mitigation against timing attack. (authored by gniibe).
ecc: Add mitigation against timing attack.
Aug 7 2019, 7:38 AM
gniibe committed rCb9577f7c89b4: ecc: Add mitigation against timing attack. (authored by gniibe).
ecc: Add mitigation against timing attack.
Aug 7 2019, 7:38 AM
gniibe committed rC5ad654a33085: dsa,ecdsa: Allocate secure memory for RFC6979 generation. (authored by gniibe).
dsa,ecdsa: Allocate secure memory for RFC6979 generation.
Aug 7 2019, 7:38 AM
gniibe committed rC75c2fbc43d2f: dsa,ecdsa: Allocate secure memory for RFC6979 generation. (authored by gniibe).
dsa,ecdsa: Allocate secure memory for RFC6979 generation.
Aug 7 2019, 7:38 AM
gniibe committed rG100642e77696: scd: Remove fallback mechanism to PC/SC. (authored by gniibe).
scd: Remove fallback mechanism to PC/SC.
Aug 7 2019, 1:52 AM