Page MenuHome GnuPG
Feed Advanced Search

May 20 2016

aheinecke set External Link to https://bugs.kde.org/show_bug.cgi?id=363309 on T2365: Web of Trust status Display in Kleopatra insufficient.
May 20 2016, 9:57 AM · KDE, Bug Report, gpg4win
aheinecke renamed T2365: Web of Trust status Display in Kleopatra insufficient from - to be deleted - to Web of Trust status Display in Kleopatra insufficient.
May 20 2016, 9:57 AM · KDE, Bug Report, gpg4win
aheinecke closed T2365: Web of Trust status Display in Kleopatra insufficient as Resolved.
May 20 2016, 9:57 AM · KDE, Bug Report, gpg4win
aheinecke added a comment to T2365: Web of Trust status Display in Kleopatra insufficient.

Tracked at: https://bugs.kde.org/show_bug.cgi?id=363309

May 20 2016, 9:57 AM · KDE, Bug Report, gpg4win
JochenSaalfeld renamed T2365: Web of Trust status Display in Kleopatra insufficient from Web of Trust status Display in Kleopatra insufficient to - to be deleted -.
May 20 2016, 9:34 AM · KDE, Bug Report, gpg4win
JochenSaalfeld placed T2365: Web of Trust status Display in Kleopatra insufficient up for grabs.
May 20 2016, 9:34 AM · KDE, Bug Report, gpg4win
JochenSaalfeld removed a project from T2365: Web of Trust status Display in Kleopatra insufficient: kleopatra.
May 20 2016, 9:34 AM · KDE, Bug Report, gpg4win
JochenSaalfeld reopened T2365: Web of Trust status Display in Kleopatra insufficient as "Open".
May 20 2016, 9:33 AM · KDE, Bug Report, gpg4win
JochenSaalfeld closed T2365: Web of Trust status Display in Kleopatra insufficient as Resolved.
May 20 2016, 9:25 AM · KDE, Bug Report, gpg4win
bernhard raised the priority of T2365: Web of Trust status Display in Kleopatra insufficient from Low to Normal.
May 20 2016, 8:22 AM · KDE, Bug Report, gpg4win
JochenSaalfeld added projects to T2365: Web of Trust status Display in Kleopatra insufficient: gpg4win, kleopatra, Bug Report, KDE.
May 20 2016, 8:12 AM · KDE, Bug Report, gpg4win

May 19 2016

noEntry closed T2234: Core dump while calling bkuptocard as Resolved.
May 19 2016, 11:48 PM · Bug Report, gnupg
noEntry reopened T2234: Core dump while calling bkuptocard as "Open".
May 19 2016, 11:48 PM · Bug Report, gnupg
noEntry added a comment to T2234: Core dump while calling bkuptocard.

Issue is resolved

May 19 2016, 11:48 PM · Bug Report, gnupg
noEntry removed a project from T2234: Core dump while calling bkuptocard: Restricted Project.
May 19 2016, 11:47 PM · Bug Report, gnupg
noEntry closed T2234: Core dump while calling bkuptocard as Resolved.
May 19 2016, 11:47 PM · Bug Report, gnupg
werner added a project to T2361: not-resolved status needs to be include in the seartch: In Progress.
May 19 2016, 10:34 AM · In Progress, Bug Report
werner added a comment to T2361: not-resolved status needs to be include in the seartch.

Done for new searches.

May 19 2016, 10:34 AM · In Progress, Bug Report
werner closed T2356: Typo in man gpg ("teh") as Resolved.
May 19 2016, 10:20 AM · Bug Report, gnupg
werner added projects to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew): gnupg (gpg21), gpgagent, gnupg.
May 19 2016, 10:07 AM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
werner added a comment to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew).

Thanks. I need a stack backtrace to find the location of the cause.
Please start gpg-agent using:

  gpg-connect-agent /bye

The figure out the PID of the gpg-agent process and run

  gdb /usr/local/bin/gpg-agent PID

At the gdb prompt enter

  handle SIGPIPE nostop noprint pass
  c

The "c" continues operation of gpg-agent. In another terminal run

  gpg2 --sign

as done in your example. GDB in the first terminal will eventually
stop due to the assert. Enter at the gdb prompt:

  bt

and post the output. I would also like to know which version of
libgpg-error you are using:

  gpg-error --version

should show this (or use gpg-error-config --version).

May 19 2016, 10:07 AM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
gniibe added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

Here is another session after another three times failure.

This time, unblock by admin with Admin PIN.

$ gpg --card-edit

Reader ...........: Free Software Initiative of Japan Gnuk (FSIJ-1.1.9-87021534)
00 00
Application ID ...: D276000124010200FFFE870215340000
Version ..........: 2.0
Manufacturer .....: unmanaged S/N range
Serial number ....: 87021534
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa4096 rsa4096 rsa4096
Max. PIN lengths .: 127 127 127
PIN retry counter : 0 3 3
Signature counter : 6
Signature key ....: 6E9A 631F 1997 F37C 7F4E 9952 8916 1D16 AA0D B710

created ....: 2016-05-19 05:09:13

Encryption key....: 0138 70C9 FA89 986F 2784 31A9 8AAA 8F21 ABD4 A70C

created ....: 2016-05-19 05:09:13

Authentication key: B2FE 8DAF 9494 3320 760F 38E2 30F6 A992 6870 02D6

created ....: 2016-05-19 05:11:14

General key info..: pub rsa4096/AA0DB710 2016-05-19 Chuji Kunisada
<chuji@gniibe.org>
sec> rsa4096/AA0DB710 created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/ABD4A70C created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/687002D6 created: 2016-05-19 expires: never

                        card-no: FFFE 87021534

gpg/card> admin
Admin commands are allowed

gpg/card> passwd
gpg: OpenPGP card no. D276000124010200FFFE870215340000 detected

1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit

Your selection? 2

[ Admin PIN ]
[ New PIN ]
[ Repeat New PIN ]

PIN unblocked and new PIN set.

1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit

Your selection? q

gpg/card>

Reader ...........: Free Software Initiative of Japan Gnuk (FSIJ-1.1.9-87021534)
00 00
Application ID ...: D276000124010200FFFE870215340000
Version ..........: 2.0
Manufacturer .....: unmanaged S/N range
Serial number ....: 87021534
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa4096 rsa4096 rsa4096
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 3 3
Signature counter : 6
Signature key ....: 6E9A 631F 1997 F37C 7F4E 9952 8916 1D16 AA0D B710

created ....: 2016-05-19 05:09:13

Encryption key....: 0138 70C9 FA89 986F 2784 31A9 8AAA 8F21 ABD4 A70C

created ....: 2016-05-19 05:09:13

Authentication key: B2FE 8DAF 9494 3320 760F 38E2 30F6 A992 6870 02D6

created ....: 2016-05-19 05:11:14

General key info..: pub rsa4096/AA0DB710 2016-05-19 Chuji Kunisada
<chuji@gniibe.org>
sec> rsa4096/AA0DB710 created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/ABD4A70C created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/687002D6 created: 2016-05-19 expires: never

                        card-no: FFFE 87021534

$

May 19 2016, 8:25 AM · Info Needed, gnupg, scd, Bug Report
gniibe added a project to T2298: Unblocking a smartcard PIN not possible in 2.1: Info Needed.
May 19 2016, 8:24 AM · Info Needed, gnupg, scd, Bug Report
gniibe changed Version from 2.1.11 to 2.1.11,2.1.12 on T2298: Unblocking a smartcard PIN not possible in 2.1.
May 19 2016, 8:24 AM · Info Needed, gnupg, scd, Bug Report
gniibe added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

My case with Gnuk Token.
First, I intentionally input wrong PIN for singing three times.
Then, I invoke gpg --card-edit (with 2.1.2 on Debian experimental) to unblock
the token by resetcode.

$ gpg --card-edit

Reader ...........: Free Software Initiative of Japan Gnuk (FSIJ-1.1.9-87021534)
00 00
Application ID ...: D276000124010200FFFE870215340000
Version ..........: 2.0
Manufacturer .....: unmanaged S/N range
Serial number ....: 87021534
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa4096 rsa4096 rsa4096
Max. PIN lengths .: 127 127 127
PIN retry counter : 0 2 3
Signature counter : 6
Signature key ....: 6E9A 631F 1997 F37C 7F4E 9952 8916 1D16 AA0D B710

created ....: 2016-05-19 05:09:13

Encryption key....: 0138 70C9 FA89 986F 2784 31A9 8AAA 8F21 ABD4 A70C

created ....: 2016-05-19 05:09:13

Authentication key: B2FE 8DAF 9494 3320 760F 38E2 30F6 A992 6870 02D6

created ....: 2016-05-19 05:11:14

General key info..: pub rsa4096/AA0DB710 2016-05-19 Chuji Kunisada
<chuji@gniibe.org>
sec> rsa4096/AA0DB710 created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/ABD4A70C created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/687002D6 created: 2016-05-19 expires: never

                        card-no: FFFE 87021534

gpg/card> unblock
gpg: OpenPGP card no. D276000124010200FFFE870215340000 detected

[ Resetcode ]
[ New PIN ]
[ Repeat New PIN ]

PIN changed.

gpg/card>

Reader ...........: Free Software Initiative of Japan Gnuk (FSIJ-1.1.9-87021534)
00 00
Application ID ...: D276000124010200FFFE870215340000
Version ..........: 2.0
Manufacturer .....: unmanaged S/N range
Serial number ....: 87021534
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: not forced
Key attributes ...: rsa4096 rsa4096 rsa4096
Max. PIN lengths .: 127 127 127
PIN retry counter : 3 3 3
Signature counter : 6
Signature key ....: 6E9A 631F 1997 F37C 7F4E 9952 8916 1D16 AA0D B710

created ....: 2016-05-19 05:09:13

Encryption key....: 0138 70C9 FA89 986F 2784 31A9 8AAA 8F21 ABD4 A70C

created ....: 2016-05-19 05:09:13

Authentication key: B2FE 8DAF 9494 3320 760F 38E2 30F6 A992 6870 02D6

created ....: 2016-05-19 05:11:14

General key info..: pub rsa4096/AA0DB710 2016-05-19 Chuji Kunisada
<chuji@gniibe.org>
sec> rsa4096/AA0DB710 created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/ABD4A70C created: 2016-05-19 expires: never

card-no: FFFE 87021534

ssb> rsa4096/687002D6 created: 2016-05-19 expires: never

                        card-no: FFFE 87021534

gpg/card> quit

Please note that 'unblock' subcommand is to unblock with resetcode.

May 19 2016, 8:24 AM · Info Needed, gnupg, scd, Bug Report

May 18 2016

rygpeter added a comment to T2356: Typo in man gpg ("teh").

After a release upgrade, in "gnupg 1.4.20-1ubuntu3 amd64", this typo disappeared
(I see "the").
For myself, this issue can be closed.

May 18 2016, 2:49 PM · Bug Report, gnupg
gniibe added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

For some reason, I can't reproduce your problem in 2.1.x. Isn't it a problem of
your smartcard implementation?
Please describe the specific version number of GnuPG which is possible to
unblock this particular implementation of smartcard.

May 18 2016, 1:18 PM · Info Needed, gnupg, scd, Bug Report

May 17 2016

gfontenot added a comment to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew).

This is with gnupg 2.1.12, I don't have the same issue with gnupg 2.0.30

May 17 2016, 4:43 PM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
rygpeter added a comment to T2356: Typo in man gpg ("teh").

1.4.18-7ubuntu1

May 17 2016, 3:41 PM · Bug Report, gnupg
rygpeter added a comment to T2356: Typo in man gpg ("teh").

$ dpkg-query -l gnupg
Desired=Unknown/Install/Remove/Purge/Hold

Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
/ Name Version Architecture Description

+++-===================-==============-==============-============================================
ii gnupg 1.4.18-7ubuntu amd64 GNU privacy guard - a free
PGP replacement

May 17 2016, 3:39 PM · Bug Report, gnupg
machnikr_gmail.com added a comment to T2354: Deleted secure key not quite deleted?.

Hi Werner,

It's Linux 3.10.0-229.4.2.el7.x86_64 and GnuPG 2.0.22 libgcrypt 1.5.3.
If you mean the commands to delete the test secret key that is now somehow
still showing up when I try to delete the new public key, just imported,
that's:
gpg --delete-secret-keys 'user ID...'

Trying to edit the newly imported key:
gpg -u 'user ID for the key that is used to sign/trust keys' --edit-key
'user ID of the new key'
also tried
gpg -u 'user ID for the key that is used to sign/trust keys' --edit-key
keyID...

I hope this helps, thanks.
Raf

May 17 2016, 2:48 PM · gnupg, Bug Report
werner added a comment to T2356: Typo in man gpg ("teh").

Which GnuPG version?

May 17 2016, 2:26 PM · Bug Report, gnupg
werner added a project to T2361: not-resolved status needs to be include in the seartch: Bug Report.
May 17 2016, 2:26 PM · In Progress, Bug Report
werner added projects to T2357: "minimal dunb-terminal": Not A Bug, Debian.
May 17 2016, 2:21 PM · Debian, Not A Bug, Bug Report, pinentry
werner closed T2357: "minimal dunb-terminal" as Resolved.
May 17 2016, 1:55 PM · Debian, Not A Bug, Bug Report, pinentry
werner added a comment to T2357: "minimal dunb-terminal".

Please report this to Debian. This is not a part of upstream Pinentry.

May 17 2016, 1:55 PM · Debian, Not A Bug, Bug Report, pinentry
werner added a comment to T2354: Deleted secure key not quite deleted?.

Which version of GnUPG are you using?
Which operating system?
Can you please provide the commands you used?

I can't decide right now whether this might be a bug; You may also want to ask
on gnupg-users for help.

May 17 2016, 1:53 PM · gnupg, Bug Report
werner placed T2276: keyring_search failed and failed to rebuild keyring cache: Legacy key up for grabs.
May 17 2016, 1:49 PM · Bug Report, gnupg, gnupg (gpg21)
werner added a comment to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew).

Which version of GnuPG are you using?

May 17 2016, 1:46 PM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
aheinecke updated subscribers of T2359: Query which key will be used for a given mailbox.
May 17 2016, 11:59 AM · gnupg (gpg22), gnupg, Feature Request
aheinecke added projects to T2359: Query which key will be used for a given mailbox: gnupg (gpg21), gnupg, Bug Report.
May 17 2016, 11:59 AM · gnupg (gpg22), gnupg, Feature Request
aheinecke set Version to master on T2359: Query which key will be used for a given mailbox.
May 17 2016, 11:59 AM · gnupg (gpg22), gnupg, Feature Request

May 15 2016

languitar added a comment to T2298: Unblocking a smartcard PIN not possible in 2.1.

Sorry for the delay. Here is the complete log:

  • SNIP ---

languitar@bird ~> gpg --card-edit

Reader ...........: REINER SCT cyberJack RFID standard (XXXXX) 00 00
Application ID ...: XXXXXX
Version ..........: 2.0
Manufacturer .....: Yubico
Serial number ....: XXXXXX
Name of cardholder: [not set]
Language prefs ...: [not set]
Sex ..............: unspecified
URL of public key : [not set]
Login data .......: [not set]
Signature PIN ....: forced
Key attributes ...: rsa2048 rsa2048 rsa2048
Max. PIN lengths .: 127 127 127
PIN retry counter : 0 3 3
Signature counter : 3
Signature key ....: Some Stuff

created ....: Some Stuff

Encryption key....: Some Stuff

created ....: Some Stuff

Authentication key: Some Stuff

created ....: Some Stuff

General key info..: pub rsa2048/0xXXXXXXXXXXXXX somedate somename
<somemail@example.org>
sec> rsa2048/0xXXXXXXXXXXXXXXXX created: somedate expires: never

card-no: 0006 XXXXXX

ssb> rsa2048/0xXXXXXXXXXXXXXXXX created: somedate expires: never

card-no: 0006 XXXXXX

ssb> rsa2048/0xXXXXXXXXXXXXXXXX created: somedate expires: never

                                  card-no: 0006 XXXXXX

gpg/card> admin
Admin commands are allowed

gpg/card> unblock

[GUI asks for admin PIN and new PIN, which I entered]

gpg: OpenPGP card no. XXXXXX detected
Error changing the PIN: Conditions of use not satisfied

gpg/card> passwd
gpg: OpenPGP card no. XXXXXX detected

1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit

Your selection? 2
Error unblocking the PIN: Conditions of use not satisfied

1 - change PIN
2 - unblock PIN
3 - change Admin PIN
4 - set the Reset Code
Q - quit

Your selection? q

gpg/card> q
languitar@bird ~> gpg --version
gpg (GnuPG) 2.1.12
libgcrypt 1.7.0
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,

CAMELLIA128, CAMELLIA192, CAMELLIA256

Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
languitar@bird ~> uname -a
Linux bird 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 GNU/Linux

  • SNIP ---

Same thing works without problems using an older version of GPG on my mac.

May 15 2016, 8:40 PM · Info Needed, gnupg, scd, Bug Report

May 13 2016

gfontenot added a project to T2358: gnupg 2.1, gpg-agent crashing on 'assertion failed' (OS X, Homebrew): Bug Report.
May 13 2016, 10:23 PM · gpgrt, Duplicate, gpgagent, gnupg (gpg21), Bug Report
rygpeter added projects to T2357: "minimal dunb-terminal": pinentry, Bug Report.
May 13 2016, 7:07 PM · Debian, Not A Bug, Bug Report, pinentry
rygpeter added projects to T2356: Typo in man gpg ("teh"): gnupg, Bug Report.
May 13 2016, 6:54 PM · Bug Report, gnupg
lorenz added a comment to T2230: gpgsm decryption with smartcard fails with "Invalid session key".

Anything else I can do to help?

May 13 2016, 10:12 AM · Restricted Project, gnupg, Bug Report, S/MIME, scd

May 12 2016

gp_ast added a comment to T2276: keyring_search failed and failed to rebuild keyring cache: Legacy key.

We had the same effect here and it was caused by a V3 public key in the
keyring.
This key does not show up while listing the public keys with GnuPG 2.1.12. We
could only identify and remove it by accessing the keyring with a GnuPG 1.4.x
installation.
It should be considered to either

  • display the key also during the list-keys command (to help the user to track

down the problem)
or

  • ignore it silently while building the trust db.
May 12 2016, 5:57 PM · Bug Report, gnupg, gnupg (gpg21)
dranft renamed T2355: --import of a keypair together with --batch results in no pinentry and i/o errors from --import of a keypair together with --batch and --homedir results in no pinentry and i/o errors to --import of a keypair together with --batch results in no pinentry and i/o errors.
May 12 2016, 3:07 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry
dranft added a comment to T2355: --import of a keypair together with --batch results in no pinentry and i/o errors.

PS: forget the --homedir thing, it is even reprodicable in the default folder in
%appdata%.

May 12 2016, 3:07 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry
dranft added a comment to T2355: --import of a keypair together with --batch results in no pinentry and i/o errors.

Sorry, forgot my import cmdline:

C:\Program Files (x86)\GNU\GnuPG\2.1.12\bin>gpg --batch --homedir
%tmp%\_tempKeyring --import "P:\2EEC2B65A2B4B3EF.sec.asc"
gpg: Die "Keybox" `C:/Users/ranftd/AppData/Local/Temp/_tempKeyring/pubring.kbx'
wurde erstellt
gpg: C:/Users/ranftd/AppData/Local/Temp/_tempKeyring/trustdb.gpg: trust-db erzeugt
gpg: Schlüssel A2B4B3EF: Öffentlicher Schlüssel "Daniel Ranft (Giegerich &
Partner GmbH)" importiert
gpg: Schlüssel A2B4B3EF: "Daniel Ranft (Giegerich & Partner GmbH)" nicht geändert
gpg: Schlüssel A2B4B3EF: geheimer Schlüssel importiert
gpg: Anzahl insgesamt bearbeiteter Schlüssel: 4
gpg: importiert: 1
gpg: unverändert: 1
gpg: gelesene geheime Schlüssel: 3
gpg: unveränderte geh. Schl.: 2
gpg: keine ultimativ vertrauenswürdigen Schlüssel gefunden

May 12 2016, 3:00 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry
dranft set Version to 2.1.12 on T2355: --import of a keypair together with --batch results in no pinentry and i/o errors.
May 12 2016, 2:58 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry
dranft added projects to T2355: --import of a keypair together with --batch results in no pinentry and i/o errors: pinentry, Windows 32, gnupg, Windows, gnupg (gpg21), gpgagent, Bug Report.
May 12 2016, 2:58 PM · Bug Report, gpgagent, gnupg (gpg21), Windows, gnupg, Windows 32, pinentry
machnikr_gmail.com added a project to T2354: Deleted secure key not quite deleted?: Bug Report.
May 12 2016, 12:37 PM · gnupg, Bug Report

May 11 2016

werner closed T2193: keyring / keybox race as Resolved.
May 11 2016, 10:04 PM · Bug Report, gnupg
werner removed a project from T2193: keyring / keybox race: Restricted Project.
May 11 2016, 10:04 PM · Bug Report, gnupg
werner closed T2353: Decryption error: open(CONOUT$) failed as Invalid.
May 11 2016, 10:02 PM · gnupg, Support
werner added a comment to T2353: Decryption error: open(CONOUT$) failed.

Please ask on the gnupg-users mailibng list for help.

May 11 2016, 10:02 PM · gnupg, Support
werner lowered the priority of T2353: Decryption error: open(CONOUT$) failed from High to Normal.
May 11 2016, 10:02 PM · gnupg, Support
werner added a project to T2353: Decryption error: open(CONOUT$) failed: Support.
May 11 2016, 10:02 PM · gnupg, Support
Ordell971 added projects to T2353: Decryption error: open(CONOUT$) failed: gnupg, Bug Report.
May 11 2016, 6:41 PM · gnupg, Support
justus renamed T2352: doc/version.texi is sometimes not generated from doc/version.texi is only generated if configured with --enable-maintainer-mode to doc/version.texi is sometimes not generated.
May 11 2016, 1:29 PM · gpgme, Bug Report
justus added a comment to T2352: doc/version.texi is sometimes not generated.

Hmm, it is not about the maintainer mode...

May 11 2016, 1:29 PM · gpgme, Bug Report
justus added projects to T2352: doc/version.texi is sometimes not generated: Bug Report, gpgme.
May 11 2016, 1:11 PM · gpgme, Bug Report
werner added a project to T2350: Reading uninitialized memory in libksba: In Progress.
May 11 2016, 12:44 PM · In Progress, Bug Report, libksba
werner added a comment to T2350: Reading uninitialized memory in libksba.

commit 2a9fc56 fixes the access to uninitialized buffers. Given that GnuPG puts
all senstive data into a special memory area which is cleared before a free, I
don't see a problem with a possible data leak.

What is left is the problem that the parser does not always detect invalid
encodings. This can be improved but I am not anymore convinced about that table
driven parser.

May 11 2016, 12:44 PM · In Progress, Bug Report, libksba
gniibe added a comment to T2351: Segfault in gpg --update-trustdb.

Fixed in 83a90a916e8e2f8e44c3b11d11e1dd75f65a87fb (master).

May 11 2016, 12:41 PM · Bug Report, gnupg
gniibe closed T2351: Segfault in gpg --update-trustdb as Resolved.
May 11 2016, 12:41 PM · Bug Report, gnupg
gniibe added a project to T2351: Segfault in gpg --update-trustdb: Unreleased.
May 11 2016, 12:41 PM · Bug Report, gnupg
Feandil added a comment to T2351: Segfault in gpg --update-trustdb.

This patch seems to solve the segfault for me, thanks!

May 11 2016, 12:23 PM · Bug Report, gnupg
gniibe added a comment to T2351: Segfault in gpg --update-trustdb.

Thank you for the report and your cooperation.
At least, this fix is needed.

May 11 2016, 12:12 PM · Bug Report, gnupg
gniibe added a comment to T2351: Segfault in gpg --update-trustdb.

D367: 835_sig-check-correction.diff

May 11 2016, 12:12 PM · Bug Report, gnupg
Feandil added a comment to T2351: Segfault in gpg --update-trustdb.

Include trace.log

May 11 2016, 11:33 AM · Bug Report, gnupg
Feandil added a comment to T2351: Segfault in gpg --update-trustdb.

May 11 2016, 11:33 AM · Bug Report, gnupg
Feandil set Version to 2.1.12 on T2351: Segfault in gpg --update-trustdb.
May 11 2016, 11:32 AM · Bug Report, gnupg
Feandil added projects to T2351: Segfault in gpg --update-trustdb: gnupg, Bug Report.
May 11 2016, 11:32 AM · Bug Report, gnupg
werner added a comment to T2350: Reading uninitialized memory in libksba.

Thanks. I would actually prefer to handle this by mail because this makes
communication easier and faster. It would also be useful to known on what you
are working or plan to work on, so that we do not need to rush out releases
while there are other obvious things to fix.

May 11 2016, 10:58 AM · In Progress, Bug Report, libksba
pascal_cuoq added a comment to T2350: Reading uninitialized memory in libksba.

Now I regret reporting so many different problems as a single ticket. Note that if possible
information leaks are the only thing we are concerned with, all the issues in this ticket can be
solved by systematically initializing dynamically allocated memory, so they have that in common.

This won't solve the problems that several inconsistent .crt files are in fact accepted as valid,
showing contents of the freshly initialized allocated memory in place of information that should have
come from the .crt file. I would much prefer fixing these logic errors individually so that use of
uninitialized memory can remain a useful symptom of other logic errors, but ultimately, this is your
choice to make.

May 11 2016, 3:28 AM · In Progress, Bug Report, libksba
pascal_cuoq added a comment to T2350: Reading uninitialized memory in libksba.

May 11 2016, 3:10 AM · In Progress, Bug Report, libksba
pascal_cuoq added a comment to T2350: Reading uninitialized memory in libksba.

Here is a fourth instance of use of uninitialized memory (uninitialized4.crt).

The tis-interpreter diagnostic is:

Certificate in `t.crt':

  serial....:

02

3A

83

  issuer....:

`CN=GeoTrust Global CA,O=GeoTrust Inc.,C=US'

  subject...:

`CN=Google Internet Authority G2,O=Google Inc,C=US'

  notBefore.:

2013-04-05 15:15:56

  notAfter..:

2016-12-31 23:59:59

  hash algo.: (null)

Extn: 2.5.29.35 at 517 with length 24

SubjectKeyIdentifier:

none
src/ber-help.c:213:[kernel] warning: accessing uninitialized left-value:

assert \initialized(buf);                  
stack: _ksba_ber_parse_tl :: src/cert.c:1836 <-
       _ksba_cert_get_auth_key_id :: src/visibility.c:280 <-
       ksba_cert_get_auth_key_id :: tests/cert-basic.c:190 <-
       list_extensions :: tests/cert-basic.c:546 <-
       one_file :: tests/cert-basic.c:593 <-
       main

src/ber-help.c:213:[kernel] warning: completely indeterminate value in mallocksba_malloc_l130_935 with offsets 4152 bits.

In order to make the use of uninitialized memory visible, apply the following patch:

~/instrumented/libksba-1.3.4$ diff -u src/ber-
ber-decoder.c ber-decoder.lo ber-dump ber-help.c ber-help.h ber-help.o
ber-decoder.h ber-decoder.o ber-dump.c ber-help.c~ ber-help.lo
pascal@TrustInSoft-Box-VII:~/instrumented/libksba-1.3.4$ diff -u src/ber-help.c{~,}

  • src/ber-help.c~ 2016-05-03 18:12:09.000000000 +0200

+++ src/ber-help.c 2016-05-11 03:04:34.361037076 +0200
@@ -210,7 +210,7 @@

/* Get the tag */
if (!length)
  return premature_eof (ti);
  • c = *buf++; length--;

+ c = *buf++; printf("|%02hhX|\n", c); length--;

   ti->buf[ti->nhdr++] = c;
   ti->class = (c & 0xc0) >> 6;

With the above instrumentation in place, the command "./tests/cert-basic uninitialized4.crt" shows:

Certificate in `uninitialized4.crt':

serial....: (#023A83#)
issuer....: `CN=GeoTrust Global CA,O=GeoTrust Inc.,C=US'
subject...: `CN=Google Internet Authority G2,O=Google Inc,C=US'
notBefore.: 2013-04-05 15:15:56
notAfter..: 2016-12-31 23:59:59
hash algo.: (null)

Extn: 2.5.29.35 at 517 with length 24
SubjectKeyIdentifier: none

30
3E

cert-basic.c:219: ksba_cert_get_auth_key_id: Invalid certificate object
KeyUsage: Not specified
ExtKeyUsages: none
CertificatePolicies: none
cert-basic.c:557: expected EOF but got: BER error

The line |3E| indicates access to uninitialized memory.

May 11 2016, 3:10 AM · In Progress, Bug Report, libksba
pascal_cuoq added a comment to T2350: Reading uninitialized memory in libksba.

May 11 2016, 3:01 AM · In Progress, Bug Report, libksba
pascal_cuoq added a comment to T2350: Reading uninitialized memory in libksba.

Here is a third instance, much like the second one. As the read from uninitialized memory happens in append_ucs2_value(),
the uninitialized memory is harder to recognize in the output.

tis-interpreter information:

Certificate in `t.crt':

  serial....:

02

3A

83
src/dn.c:522:[kernel] warning: accessing uninitialized left-value:

assert \initialized(tmp_1);
(tmp_1 from s++)
stack: append_ucs2_value :: src/dn.c:619 <-
       append_atv :: src/dn.c:667 <-
       dn_to_str :: src/dn.c:692 <-
       _ksba_dn_to_str :: src/cert.c:609 <-
       get_name :: src/cert.c:744 <-
       _ksba_cert_get_issuer :: src/visibility.c:190 <-
       ksba_cert_get_issuer :: tests/cert-basic.c:424 <-
       one_file :: tests/cert-basic.c:593 <-
       main

src/dn.c:522:[kernel] warning: completely indeterminate value in mallocksba_malloc_l130_935 with offset 1384 bits.

May 11 2016, 3:01 AM · In Progress, Bug Report, libksba
pascal_cuoq added a comment to T2350: Reading uninitialized memory in libksba.

May 11 2016, 2:48 AM · In Progress, Bug Report, libksba
pascal_cuoq added projects to T2350: Reading uninitialized memory in libksba: libksba, Bug Report.
May 11 2016, 2:48 AM · In Progress, Bug Report, libksba
pascal_cuoq set Version to 1.3.4 on T2350: Reading uninitialized memory in libksba.
May 11 2016, 2:48 AM · In Progress, Bug Report, libksba

May 10 2016

werner added a project to T2094: public key cannot be deleted: Unreleased.
May 10 2016, 12:54 PM · Bug Report, gpa
werner closed T2094: public key cannot be deleted as Resolved.
May 10 2016, 12:54 PM · Bug Report, gpa
werner removed a project from T2094: public key cannot be deleted: Restricted Project.
May 10 2016, 12:54 PM · Bug Report, gpa
werner added a project to T2246: Regression: home dir no longer automatically created: Unreleased.
May 10 2016, 11:41 AM · Bug Report, gnupg
werner closed T2246: Regression: home dir no longer automatically created as Resolved.
May 10 2016, 11:41 AM · Bug Report, gnupg
werner removed a project from T2246: Regression: home dir no longer automatically created: Restricted Project.
May 10 2016, 11:41 AM · Bug Report, gnupg
werner added a comment to T2324: gpg --batch --export-secret-key fails (requires user interaction) if key has no passphrase.

re: T2324 (justus on Apr 18 2016, 05:22 PM / Roundup)

  1. gpg --export-secret-key should export unprotected keys that are stored w/o a passphrase"

That would violate the policy we implement in gpg-agent. The
gpg-agent is responsible for private keys and a client may not use a
private key without the agent's consent. If we would allow that by
default there won't be any protection at all and keys can be easily
exported and used. A required confirmation via the Pinentry would
solve the practical problem. However, there is the question what to
do on unattended systems - the only way it can be done right now is
configuring gpg-agent to use a custom pinentry, or by extending the
loopback mode.

May 10 2016, 10:13 AM · gnupg, OpenPGP, Bug Report
werner added a project to T2338: gpa "no keys found": Support.
May 10 2016, 8:45 AM · Support, Windows 32, Windows, Bug Report, gpa
werner closed T2279: Russian localization typo in menu. as Resolved.
May 10 2016, 8:43 AM · Bug Report, gpgex
werner added a comment to T2279: Russian localization typo in menu..

Thanks. Fixed in the repo.

May 10 2016, 8:43 AM · Bug Report, gpgex
werner added a project to T2330: GpgOL tries to decrypt sent E-Mails which are encrypted by Outlook: gpgol.
May 10 2016, 8:37 AM · Duplicate, gpgol, Bug Report
werner added projects to T2332: Cannot authenticate with LDAP keyserver: dirmngr, gnupg.
May 10 2016, 8:36 AM · gnupg, dirmngr, Bug Report

May 9 2016

werner added a comment to T2236: Importing a key with badly ordered packets doesn't reorder it, and while --edit-key does reorder it doesn't move the signature packets to the right place.

I see. I just pushed two fixes.

May 9 2016, 9:17 PM · gnupg (gpg22), Bug Report
werner added a comment to T2246: Regression: home dir no longer automatically created.

Thanks. Fix released with 2.0.30 and 2.1.12.
We can close this bug after the release of 1.4.21

May 9 2016, 8:46 PM · Bug Report, gnupg
gniibe added a comment to T2246: Regression: home dir no longer automatically created.

Fixed in all branches.

Master 2.1: d9f9b3be036747c9f55060aed47896f951bfb853
1.4: d957e4388f72581b1ec801613b5629b5ea3f586d
2.0: eb7806d63df63663170ba86f0673caa34b944c28

For some reason, the commit messages of 1.4 and 2.0 refers
master commit of 2f3e42047d17313eeb38d354048f343158402a8d.
Perhaps, I did in my repo and it was 2f3e420 and apply it to 1.4 and 2.0.
Then, I pushed 1.4, 2.0, and 2.1. and 2.1 was failed because of
non-fast-forward. Then I rebased for 2.1.

May 9 2016, 4:18 AM · Bug Report, gnupg