Page MenuHome GnuPG
Feed All Stories

Dec 8 2014

aheinecke added a comment to T1784: pinentry-0.9.0: wrong #include paths in .moc files.

Werner: I think the source tarball you distribute should be changed not to
include the .moc files as they depend on the qt version used when you generate
the tarballs.

MOC should be detected during configure (and otherwise pinentry-qt should be
disabled) and MOC should be used to generate the moc files. If this does not
work as expected this might have been caused by my limited Make and autotools
skills ;-)

Dec 8 2014, 5:35 PM · Bug Report, pinentry
vincent set Version to 0.9.0 on T1784: pinentry-0.9.0: wrong #include paths in .moc files.
Dec 8 2014, 2:39 PM · Bug Report, pinentry
vincent added projects to T1784: pinentry-0.9.0: wrong #include paths in .moc files: pinentry, Bug Report.
Dec 8 2014, 2:39 PM · Bug Report, pinentry
werner set External Link to https://bugs.debian.org/771976 on T1781: "gpg --list-keys" fails when $GNUPGHOME is not writable.
Dec 8 2014, 12:55 PM · Not A Bug, Debian, Bug Report, gnupg
snicker added a comment to T1783: gpa.exe has stopped working.

Yes, it is part of the gpg4win, it is the latest version. 2.2.3 but the last
versions also have the same problem.

Dec 8 2014, 10:24 AM · gpg4win, Bug Report, gpa

Dec 7 2014

leriksen added a comment to T1776: Fix deprecation warning about AM_PROG_MKDIR_P.

Understood - would you like me to fix with automake 1.10, or park this
for a merge post-Jessie ?

Dec 7 2014, 10:47 AM · patch, gnupg, gnupg (gpg21)

Dec 5 2014

werner added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

The GIT version has the change to redirect sockets so to make it wok on shared
and NFS mounted home directories.

You need to prepare a file with this content:

%Assuan%
socket=/what/ever/is/the/real/socket

Exactly two lines, no extra white space. Store this as ~/.gnupg/S.gpg-agent

Dec 5 2014, 10:10 AM · gnupg, Bug Report

Dec 4 2014

werner added a comment to T1782: wrong return type for _gcry_vcontrol.

One is an enum, the other an int - not a problem according to the C specs.

Dec 4 2014, 5:48 PM · Bug Report, libgcrypt
werner added a comment to T1783: gpa.exe has stopped working.

From where did you get the gpa.exe - was it part of gpg4win; if so which version?

Dec 4 2014, 5:47 PM · gpg4win, Bug Report, gpa
snicker lowered the priority of T1783: gpa.exe has stopped working from Unbreak Now! to Normal.
Dec 4 2014, 4:54 PM · gpg4win, Bug Report, gpa
snicker set Version to 0.9.6.34926 on T1783: gpa.exe has stopped working.
Dec 4 2014, 4:53 PM · gpg4win, Bug Report, gpa
snicker added projects to T1783: gpa.exe has stopped working: gpa, Bug Report.
Dec 4 2014, 4:53 PM · gpg4win, Bug Report, gpa
snicker set Due Date to Dec 1 2015, 1:00 AM on T1783: gpa.exe has stopped working.
Dec 4 2014, 4:53 PM · gpg4win, Bug Report, gpa
snicker added a comment to T1783: gpa.exe has stopped working.

Dec 4 2014, 4:53 PM · gpg4win, Bug Report, gpa
vincent_benayoun_trustinsoft set Version to 1.6.0 on T1782: wrong return type for _gcry_vcontrol.
Dec 4 2014, 12:57 PM · Bug Report, libgcrypt
vincent_benayoun_trustinsoft added projects to T1782: wrong return type for _gcry_vcontrol: libgcrypt, Bug Report.
Dec 4 2014, 12:57 PM · Bug Report, libgcrypt
vincent_benayoun_trustinsoft added a comment to T1782: wrong return type for _gcry_vcontrol.

D273: 534_fix_return_type__gcry_vcontrol.patch

Dec 4 2014, 12:57 PM · Bug Report, libgcrypt
aixtools added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

I'll add the logs to the "issue" asap.

Dec 4 2014, 10:38 AM · gnupg, Bug Report
aixtools added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

Dec 4 2014, 10:38 AM · gnupg, Bug Report
aixtools added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

p.s. Not sure of effect of creating the file named socket in the current path -
as it is an NFS-v3 mounted filesystem. If you give a change (to test) that opens
the socket in e.g., /tmp, I can add that and test.

Dec 4 2014, 10:16 AM · gnupg, Bug Report
aixtools added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

Looking at the log files - seems basic error is because there is "No secret key".

Should I have done something before running "make check"?

Some examples:
Test: armencrypt.test
GNUPGHOME=/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0/tests/openpgp
gpg: two@example.com: skipped: No public key
gpg: plain-1: encryption failed: No public key

Test: armor.test
GNUPGHOME=/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0/tests/openpgp
armor.test: checking: armored_key_8192
gpg: /data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0/tests/openpgp/trustdb.gpg: trustdb
created
gpg: key DE415B0E: public key "Susumu OSAWA <susumu-o@goforward.org>" imported
gpg: can't connect to the agent: IPC connect call failed
gpg: Total number processed: 1
gpg: imported: 1
armor.test: the armored_key_8192 bug is back in town

Test: clearsig.test
GNUPGHOME=/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0/tests/openpgp
gpg: no default secret key: No secret key
gpg: plain-1: clearsign failed: No secret key
...skipping...

Test: conventional-mdc.test
GNUPGHOME=/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0/tests/openpgp
gpg: IDEA encrypted data
gpg: encrypted with 1 passphrase
...skipping...

Test: conventional.test
GNUPGHOME=/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0/tests/openpgp
gpg: can't open 'plain-2': No such file or directory
gpg: symmetric encryption of 'plain-2' failed: No such file or directory
...skipping...

Test: decrypt-dsa.test
GNUPGHOME=/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0/tests/openpgp
gpg: encrypted with ELG key, ID CB879DE9
gpg: decryption failed: No secret key
...skipping...

Test: decrypt.test
GNUPGHOME=/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0/tests/openpgp
gpg: encrypted with ELG key, ID 47BE2775
gpg: decryption failed: No secret key

Test: decrypt.test
GNUPGHOME=/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0/tests/openpgp
gpg: encrypted with ELG key, ID 47BE2775
gpg: decryption failed: No secret key

Dec 4 2014, 10:13 AM · gnupg, Bug Report
aixtools added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

Dec 4 2014, 9:57 AM · gnupg, Bug Report
aixtools added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

michael@x054:[/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0]ln -s tests AIX-tests
michael@x054:[/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0]tar cf -
./AIX-tests/openpgp | bzip2 >AIX-tests_openpgp.tar.bz2
tar: ./AIX-tests/openpgp/S.gpg-agent: socket ignored
michael@x054:[/data/prj/gnu/gcrypt/gnupg/gnupg-2.1.0]ls -li
./AIX-tests/openpgp/S.gpg-agent
182715173 srwxrwxrwx 1 root system 0 Dec 03 14:29
./AIX-tests/openpgp/S.gpg-agent

i.e., Sending the whole directory...

re: GCC and bug - as I replied per email. No idea.

Dec 4 2014, 9:57 AM · gnupg, Bug Report
werner added a comment to T1776: Fix deprecation warning about AM_PROG_MKDIR_P.

automake 1.14 is not yet supported becuase it defaults to the new parallel tests
and automake 1.11 has no way to disable this tests (serial-tests option in 1.14).

After the release of Debian Jessie I plan to migrate to 1.14 and drop support
form earlier automakes.

Dec 4 2014, 8:59 AM · patch, gnupg, gnupg (gpg21)
werner added a comment to T1780: check failure -- FAIL: pipeconnect.

What is the dscription of errno=141 ?

Dec 4 2014, 8:55 AM · Info Needed, Bug Report, libassuan
werner added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

The test write log files for each test. Can you please send or upload
tests/openpgp/version.test.log - that should give a hint what is going
wrong.

I also wonder about some of the diagnostics:

  t-stringhelp.c: In function 'test_strconcat':
  t-stringhelp.c:201:20: warning: missing sentinel in function call  [-Wformat]

If you look at the code

  out = strconcat ("1", "2", "3", "4", "5", "6", "7", "8", "9", "10",
                   "1", "2", "3", "4", "5", "6", "7", "8", "9", "10",
                   "1", "2", "3", "4", "5", "6", "7", "8", "9", "10",
                   "1", "2", "3", "4", "5", "6", "7", "8", "9", "10",
                   "1", "2", "3", "4", "5", "6", "7", NULL);

you see that a sentinel (NULL) is there. From the header files:

  #if __GNUC__ >= 4
  # define GNUPG_GCC_A_SENTINEL(a) __attribute__ ((sentinel(a)))
  #else
  # define GNUPG_GCC_A_SENTINEL(a)
  #endif

  [..]
  /* Concatenate the string S1 with all the following strings up to a
     NULL.  Returns a malloced buffer with the new string or NULL on a
     malloc error or if too many arguments are given.  */
  char *strconcat (const char *s1, ...) GNUPG_GCC_A_SENTINEL(0);

is gcc 4.7.4 known for having such a bug?

Dec 4 2014, 8:52 AM · gnupg, Bug Report
dkg added a comment to T1781: "gpg --list-keys" fails when $GNUPGHOME is not writable.

oh, and this appears to be the case for 1.4.x, 2.0.x, and 2.1.x

Dec 4 2014, 3:21 AM · Not A Bug, Debian, Bug Report, gnupg
dkg added a comment to T1781: "gpg --list-keys" fails when $GNUPGHOME is not writable.

That link to the debian bts is a little wacky, somehow roundup is attaching the
comma to the end of it. it should be: https://bugs.debian.org/771976

Dec 4 2014, 3:20 AM · Not A Bug, Debian, Bug Report, gnupg
dkg added projects to T1781: "gpg --list-keys" fails when $GNUPGHOME is not writable: gnupg, Bug Report, Debian.
Dec 4 2014, 3:02 AM · Not A Bug, Debian, Bug Report, gnupg
gwmoore added projects to T1780: check failure -- FAIL: pipeconnect: libassuan, Bug Report.
Dec 4 2014, 1:39 AM · Info Needed, Bug Report, libassuan
gwmoore set Version to 2.1.3 on T1780: check failure -- FAIL: pipeconnect.
Dec 4 2014, 1:39 AM · Info Needed, Bug Report, libassuan

Dec 3 2014

aixtools added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

Dec 3 2014, 3:31 PM · gnupg, Bug Report
aixtools added a comment to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.

Adding make and make check as I see it on screen.

Dec 3 2014, 3:31 PM · gnupg, Bug Report
aixtools set Version to gnupg-2.1.0 on T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org.
Dec 3 2014, 3:14 PM · gnupg, Bug Report
aixtools added a project to T1779: AIX & GCC 4.7.4: 27 of 30 tests failed Please report to http://bugs.gnupg.org: Bug Report.
Dec 3 2014, 3:14 PM · gnupg, Bug Report
aixtools set Version to gnupg-2.1.0 on T1778: t-exechelp-posix get_max_fds returns MAX_INT32 rather than something sensible.
Dec 3 2014, 3:03 PM · gnupg, Bug Report
aixtools added a comment to T1778: t-exechelp-posix get_max_fds returns MAX_INT32 rather than something sensible.

D272: 530_exechelp-posix.c.patch

Dec 3 2014, 3:03 PM · gnupg, Bug Report
aixtools added a project to T1778: t-exechelp-posix get_max_fds returns MAX_INT32 rather than something sensible: Bug Report.
Dec 3 2014, 3:03 PM · gnupg, Bug Report
wavexx added a comment to T1453: pinentry-gtk2: ESC not handled.

On 12/02/2014 10:14 PM, Daniel Kahn Gillmor via BTS wrote:

Daniel Kahn Gillmor <dkg@fifthhorseman.net> added the comment:

Any word on this? It would be nice to see something like this merged.

Dec 3 2014, 1:57 PM · Bug Report, pinentry
werner added a comment to T1750: Tracking GnuPG Frontend compatibility with 2.1.0.

Probably due to T1774 which has beend fixed.

Dec 3 2014, 12:37 PM

Dec 2 2014

dkg added projects to T1777: pinentry-gtk-2 refuses input when GTK_IM_MODULE=scim: pinentry, Bug Report.
Dec 2 2014, 10:47 PM · Bug Report, pinentry
dkg added a comment to T1453: pinentry-gtk2: ESC not handled.

Any word on this? It would be nice to see something like this merged.

Dec 2 2014, 10:14 PM · Bug Report, pinentry
snassar added a comment to T1750: Tracking GnuPG Frontend compatibility with 2.1.0.

kmail2 4.14.3 fails to terminate gpg 2.1.0 instances on failed attempt to
attach public keys: https://bugs.kde.org/show_bug.cgi?id=341501

Dec 2 2014, 9:06 PM
snassar added a comment to T1750: Tracking GnuPG Frontend compatibility with 2.1.0.

KMail2 4.14.3 cannot attach public keys when using GnuPG 2.1.0:
https://bugs.kde.org/show_bug.cgi?id=341490

Dec 2 2014, 9:05 PM

Dec 1 2014

kalaleq added a comment to T1752: gpg-agent 2.1 socket and nfs /home.

That is... just far too obvious for words. *facepalm*

Okay, this works nicely for my needs. Wrapper scripts can turn it into a
site-wide policy.

Dec 1 2014, 5:00 PM · Bug Report, gnupg
aheinecke closed T1774: gpg --export --armor FINGERPRINT, endless output as Resolved.
Dec 1 2014, 3:06 PM · Bug Report, gnupg
nivit added a comment to T1774: gpg --export --armor FINGERPRINT, endless output.

I can confirm it too. Thank you for this fix.

Dec 1 2014, 3:06 PM · Bug Report, gnupg
nivit reopened T1774: gpg --export --armor FINGERPRINT, endless output as "Open".
Dec 1 2014, 3:06 PM · Bug Report, gnupg
aheinecke closed T1774: gpg --export --armor FINGERPRINT, endless output as Resolved.
Dec 1 2014, 12:02 PM · Bug Report, gnupg
aheinecke removed a project from T1774: gpg --export --armor FINGERPRINT, endless output: Restricted Project.
Dec 1 2014, 12:02 PM · Bug Report, gnupg
aheinecke added a comment to T1774: gpg --export --armor FINGERPRINT, endless output.

confirmed

Dec 1 2014, 12:02 PM · Bug Report, gnupg
werner added a project to T1752: gpg-agent 2.1 socket and nfs /home: Restricted Project.
Dec 1 2014, 12:02 PM · Bug Report, gnupg
werner removed a project from T1752: gpg-agent 2.1 socket and nfs /home: In Progress.
Dec 1 2014, 12:02 PM · Bug Report, gnupg
werner added a comment to T1752: gpg-agent 2.1 socket and nfs /home.

You need to create a redirection file for ssh too:

Set contents of ~/.gnupg/S.gpg-agent.ssh to:
%Assuan%
socket=${HOME}/.gnupg/S.gpg-agent.ssh-${HOSTNAME}

BTW, I just commtied the missing chnages to dirmngr and scdaemon.

For easier debugging you set a log file for gpg-agent or even better set that
log file to a socket in gpg-agent.conf
log-file socket:////home/foo/.gnupg/S.log
and the run
watchgnupg --time-only --force /home/foo/.gnupg/S.log
in another xterm.

Dec 1 2014, 12:02 PM · Bug Report, gnupg
werner added a project to T1774: gpg --export --armor FINGERPRINT, endless output: Restricted Project.
Dec 1 2014, 11:55 AM · Bug Report, gnupg
werner added a comment to T1774: gpg --export --armor FINGERPRINT, endless output.

Commit f1c3eb4 fixes this.

Dec 1 2014, 11:55 AM · Bug Report, gnupg
kalaleq added a comment to T1752: gpg-agent 2.1 socket and nfs /home.

Hi again -

Exporting HOSTNAME worked, thanks.

I'm still not seeing a per-host ssh agent socket, though. Maybe i'm missing
something, but here's exactly what i'm doing:

Set contents of ~/.gnupg/S.gpg-agent to:
%Assuan%
socket=${HOME}/.gnupg/S.gpg-agent-${HOSTNAME}

(newlines after each of the two lines)

~/.gnupg/gpg-agent.conf contents:
enable-ssh-support
default-cache-ttl 7200
max-cache-ttl 14400
default-cache-ttl-ssh 7200
max-cache-ttl-ssh 14400
no-grab

gpg-connect-agent --verbose /bye

gpg-connect-agent: no running gpg-agent - starting '/usr/bin/gpg-agent'
gpg-connect-agent: waiting for the agent to come up ... (5s)
gpg-connect-agent: connection to agent established
gpg-connect-agent: closing connection to agent

Now i have gpg-agent running, and gpg works as expected.

In ~/.gnupg i see the following sockets:
S.gpg-agent-mymble
S.gpg-agent.ssh

Is the ssh agent socket supposed to be the same filename with .ssh appended, or
is there another line i should be adding to the S.gpg-agent redirect file?

Thanks!

Dec 1 2014, 1:22 AM · Bug Report, gnupg

Nov 29 2014

werner added a comment to T1752: gpg-agent 2.1 socket and nfs /home.

On my system HOSTNAME is not an exported envvar. Thus

export HOSTNAME

should do what you want. ssh support and the new --extra-socket all use the
same code for creating the socket, thus this hould work. I have not tested it
but I am pretty sure. A problem might be that the printed SSH_AUTH_SOCK is not
set to the real socket name - I have not checked this.

Nov 29 2014, 11:34 AM · Bug Report, gnupg
leriksen added a comment to T1776: Fix deprecation warning about AM_PROG_MKDIR_P.

D270: 529_patch.diff

Nov 29 2014, 6:53 AM · patch, gnupg, gnupg (gpg21)
leriksen set Version to 2.1.1-beta51 on T1776: Fix deprecation warning about AM_PROG_MKDIR_P.
Nov 29 2014, 6:53 AM · patch, gnupg, gnupg (gpg21)
leriksen added projects to T1776: Fix deprecation warning about AM_PROG_MKDIR_P: gnupg (gpg21), gnupg, patch.
Nov 29 2014, 6:53 AM · patch, gnupg, gnupg (gpg21)
nivit added a comment to T1774: gpg --export --armor FINGERPRINT, endless output.

I confirm what said by aheinecke. The bug is still there with 2.1.1-beta45 on my
system too.

Nov 29 2014, 4:02 AM · Bug Report, gnupg
kalaleq added a comment to T1752: gpg-agent 2.1 socket and nfs /home.

Looks like a good solution. I got the git versions compiled and gave it
a whirl. I noticed a couple of things:

Nov 29 2014, 1:20 AM · Bug Report, gnupg
kalaleq added a comment to T1752: gpg-agent 2.1 socket and nfs /home.

Looks like a good solution. I got the git versions compiled and gave it
a whirl. I noticed a couple of things:

I tried the exact contents of S.gpg-agent you gave below, but libassuan
is creating the file as $HOME/.gnupg/S.gpg-agent-

In other words the ${HOSTNAME} is blank, which obviously won't work out
very well. :) Presumably a bug. I checked my setup:

echo $HOSTNAME

mymble

hostname

mymble

So the hostname does appear to be set correctly. I'm not quite sure how
i can start it with --verbose to see if it helps show what's happening;
if i try that, with or without a server running it just gives me the
server status.

Second, with --enable-ssh-agent, i noticed that the ssh-agent socket is
still created as ~/.gnupg/S.gpg-agent.ssh. Will this same method be
able to specify a per-host ssh-agent?

In general, though, this looks like it's on the right track! Let me
know if i can do any more testing to help.

Nov 29 2014, 12:29 AM · Bug Report, gnupg

Nov 28 2014

werner added a project to T1752: gpg-agent 2.1 socket and nfs /home: In Progress.
Nov 28 2014, 9:38 PM · Bug Report, gnupg
werner added a comment to T1752: gpg-agent 2.1 socket and nfs /home.

If you use the latest Libassuan and GnuPG from GIT you should get what you want.
For example:

rm ~/.gnupg/S.gpg-agent || true
printf '%%Assuan%%\nsocket=${HOME}/.gnupg/S.gpg-agent-${HOSTNAME}\n' \

      > ~/.gnupg/S.gpg-agent

Creates a redirection file which uses HOME and the HOSTNAME. If you start
gpg-agent with --verbose you get a noticed about what has been redirected.

Needs to be implemented for scdaemon and dirmngr as well - but that needs to
wait until Monday.

Nov 28 2014, 9:38 PM · Bug Report, gnupg
troyengel added a comment to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).

Thanks werner -- I've filed an upstream issue to bring awareness of the change
to the software I use that was affected (duply/duplicity), I'm sure this is
going to pop up for others as 2.1 becomes more widely adopted. Maybe add
something to the release notes or docs for '--passphrase-fd 0' so folks know a
config change is needed in their apps and gpg-agent? Regardless, I appreciate
your help.

(marking as resolved)

Nov 28 2014, 5:42 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
aheinecke removed projects from T1624: Gpgtar fails when files have non ASCII characters: gpgtar, gpgex.
Nov 28 2014, 3:12 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke added a comment to T1624: Gpgtar fails when files have non ASCII characters.

I've changed the category to gpa, adjusted the topic and version to 2.2.3
As you've already described the problem together with GPA here I think this is
better then opening a new bug.

I'll also no longer call this critical as the original data loss problem
(Encrypting files where one has an umlaut -> kleo thinks its a success and
deletes the original) Should be resolved.

The fix in GPA should be fairly easy. Some conversion from native to utf-8 on
input and utf-8 to native on output. So I'm taking this issue.

Werner: Could you please take a look at the patch for gpgtar. I will probably
propose something quite similar for GPA. Not real unicode support but at least
for 8 bit filenames.

Nov 28 2014, 3:12 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke changed Version from gpg4win 2.2.2 to gpg4win 2.2.3 on T1624: Gpgtar fails when files have non ASCII characters.
Nov 28 2014, 3:12 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke added a project to T1624: Gpgtar fails when files have non ASCII characters: gpa.
Nov 28 2014, 3:12 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke renamed T1624: Gpgtar fails when files have non ASCII characters from file encryption: gpgex and gpgtar does not work with umlaut to file encryption: gpa does not work with umlaut.
Nov 28 2014, 3:12 PM · gnupg, Windows 32, Windows, Bug Report
aheinecke claimed T1624: Gpgtar fails when files have non ASCII characters.
Nov 28 2014, 3:12 PM · gnupg, Windows 32, Windows, Bug Report
boehmtho added a comment to T1624: Gpgtar fails when files have non ASCII characters.

I did install gpg4win 2.2.3 which does include the fix for Umlaut. I prefer to
use GPA as frontend for encryption and decryption. For decryption, I did link
.gpg to be always opened with GPA. Unfortunatly if the File or Path to the .gpg
has an Umlaut included the GPA GUI crashes. Only if I use the open button from
GPA the file can be added to the GPA frontend and decrypted. For non-umlaut
files the link to open .gpg works fine. Do you also work on GPA bugs or do I
have to report this under the GPA category?
Thank you & regards,

Nov 28 2014, 2:56 PM · gnupg, Windows 32, Windows, Bug Report
werner added a comment to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).

If you add it to gpg.conf the Pinentry won't be used and there are fir sure
cases where things won't work. In an unattended use I can't see a problem right
now.

We can't change the behaviour of --passpharse-fd; it is widely used and:

  if ( !opt.batch && opt.pinentry_mode != PINENTRY_MODE_LOOPBACK)
    { /* Not used but we have to do a dummy read, so that it won't end
         up at the begin of the message if the quite usual trick to
         prepend the passphtrase to the message is used. */

think would break or - worse - may insert the passphrase into the message.

The passphrase is still used for symmetric only encryption in batch mode.

Nov 28 2014, 10:41 AM · gnupg, pinentry, gpgagent, gnupg (gpg21)
aheinecke added a comment to T1774: gpg --export --armor FINGERPRINT, endless output.

As I wrote in T1774 (aheinecke on Nov 27 2014, 05:42 PM / Roundup)
I reproduced this Bug with 2.1.1-beta45

Nov 28 2014, 10:32 AM · Bug Report, gnupg
werner added a comment to T1774: gpg --export --armor FINGERPRINT, endless output.

Can you test it with the latest git version or the beta at
ftp://ftp.gnupg.org/people/werner/scratch/gnupg-2.1.1-beta35.tar.bz2
?

Nov 28 2014, 10:30 AM · Bug Report, gnupg

Nov 27 2014

troyengel added a comment to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).

Roger that, thanks - I've tested it on a VM with my keys and things seem "like
they used to be" for scripting an automated passphrase entry. I specified them
in my ~/.gnupg/pgp.conf and ~/.gnupg/gpg-agent.conf since editing many
individual softwares is not possible at this time, it needs to be backwards
compatible.

What side affects (breaking things?) does having these options permanently
enabled in configs are there? Having the allow in gpg-agent.conf is harmless,
but what about the client side gpg.conf?

If client gpg '--passphrase-fd 0' is useless without '--pinentry-mode loopback',
why not make this an automatic added option (internally) if '--passphrase-fd 0'
is specified? Of what use with gnupg-2.1.x is '--passphrase-fd 0' without
'--pinentry-mode loopback'?

I double-checked the official docs, there's no mention of needing these new
loopback settings in the section for --passphrase-fd 0:

https://www.gnupg.org/documentation/manuals/gnupg/GPG-Esoteric-Options.html#GPG-Esoteric-Options

"If you use 0 for n, the passphrase will be read from STDIN." (but as we know
here, it's not unless the new loopback options are added)

Nov 27 2014, 6:02 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
aheinecke set Version to 2.1.0 on T1774: gpg --export --armor FINGERPRINT, endless output.
Nov 27 2014, 5:42 PM · Bug Report, gnupg
aheinecke updated subscribers of T1774: gpg --export --armor FINGERPRINT, endless output.
Nov 27 2014, 5:42 PM · Bug Report, gnupg
aheinecke added a comment to T1774: gpg --export --armor FINGERPRINT, endless output.

I've opened T1775 and only afterwards noticed that this issue did aleardy
exist ;-)

So here is my mesage from T1775 which further qualifies this issue:

This bug was reported by fersingb on IRC, I could reproduce it.

If you have a public keyring in the .kbx format exporting a key with the full
keyid produces an endless output stream.

To reproduce it I can import any key into a newly created gnupg homedir.
When exporting this again using the fingerprint as identifier the bug is triggered.

My usual gnupghome was automatically migrated still has a pubring.gpg and works.

Setup:
FAKEHOME=$(mktemp -d)
gpg2 --armor --export CA308D95A6332F7056B4DFD194F78CF1265059CD | gpg2 --homedir
$FAKEHOME --import

Triggering the bug:

gpg2 --homedir $FAKEHOME --armor --export CA308D95A6332F7056B4DFD194F78CF1265059CD

The short fingerprint works:

gpg2 --homedir $FAKEHOME --armor --export 265059CD

My current version is yesterdays master (2.1.1-beta45) but the original reporter
used gnupg-2.1.0.

Nov 27 2014, 5:42 PM · Bug Report, gnupg
aheinecke assigned T1774: gpg --export --armor FINGERPRINT, endless output to werner.
Nov 27 2014, 5:42 PM · Bug Report, gnupg
aheinecke closed T1775: Exporting from keybox format pubkey with full fingerprint causes endless output. as Resolved.
Nov 27 2014, 5:37 PM · Bug Report, gnupg, Duplicate, gnupg (gpg21)
aheinecke added a comment to T1775: Exporting from keybox format pubkey with full fingerprint causes endless output..

Ah damn,..
Duplicate of
T1774

sorry.

Nov 27 2014, 5:37 PM · Bug Report, gnupg, Duplicate, gnupg (gpg21)
aheinecke added a comment to T1775: Exporting from keybox format pubkey with full fingerprint causes endless output..

Duplicate of T1774

Nov 27 2014, 5:37 PM · Bug Report, gnupg, Duplicate, gnupg (gpg21)
aheinecke added a project to T1775: Exporting from keybox format pubkey with full fingerprint causes endless output.: Duplicate.
Nov 27 2014, 5:37 PM · Bug Report, gnupg, Duplicate, gnupg (gpg21)
aheinecke added projects to T1775: Exporting from keybox format pubkey with full fingerprint causes endless output.: gnupg (gpg21), gnupg, Bug Report.
Nov 27 2014, 5:36 PM · Bug Report, gnupg, Duplicate, gnupg (gpg21)
aheinecke set Version to 2.1.0 on T1775: Exporting from keybox format pubkey with full fingerprint causes endless output..
Nov 27 2014, 5:36 PM · Bug Report, gnupg, Duplicate, gnupg (gpg21)
aheinecke updated subscribers of T1775: Exporting from keybox format pubkey with full fingerprint causes endless output..
Nov 27 2014, 5:36 PM · Bug Report, gnupg, Duplicate, gnupg (gpg21)
werner closed T1771: Failing test t-oid on Solaris 10 Sparc as Resolved.
Nov 27 2014, 12:25 PM · Bug Report, libksba
werner closed T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored) as Invalid.
Nov 27 2014, 12:23 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
werner lowered the priority of T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored) from High to Normal.
Nov 27 2014, 12:23 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
werner removed a project from T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored): Bug Report.
Nov 27 2014, 12:23 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)
werner added a comment to T1772: Using '--passphrase-fd 0' forces pinentry (STDIN ignored).

Like gpgsm has done from its very beginnong, gpg now also does not pknow
anything about the secret keys. This is all delagted to gpg-agent. This means
that telling gpg a passphrase is useless.

But wait. There is a workaround: gpg has the new option

   --pinentry-mode mode
          Set the pinentry mode to mode.  Allowed values for mode are:

          default
                 Use the default of the agent, which is ask.

          ask    Force the use of the Pinentry.

          cancel Emulate use of Pinentry's cancel button.

          error  Return a Pinentry error (``No Pinentry'').

          loopback

                 Redirect Pinentry queries to the caller.  Note that
                 in contrast to Pinentry the user is not prompted
                 again if he enters a bad pass- word.

Thus by using

  gpg --pinentry-mode=loopback

you can do basically the same as with 1.4. It is well tested and
slighly different than in 1.4. Uou also need to configure gpg-agent
with

  --allow-loopback-pinentry

       Allow clients to use the loopback pinentry features; see the
       option pinentry-mode for details.
Nov 27 2014, 12:23 PM · gnupg, pinentry, gpgagent, gnupg (gpg21)

Nov 26 2014

nivit added projects to T1774: gpg --export --armor FINGERPRINT, endless output: gnupg, Bug Report.
Nov 26 2014, 11:21 PM · Bug Report, gnupg
aheinecke added a comment to T1773: Keyserver search with gnupg 2.1 fails with "System error w/o errno".

The problem was with that specific keyserver. If I use another keyserver it
works. The keyserver was the first one returned to me by using the
keys.gnupg.net pool and as gpg 1 works with it.

I've debugged the issue.

The test case is now reduced to:
gpg2 --keyserver hkp://127.0.0.1 --search foobar

Dirmngr logs:

2014-11-26 20:35:55 dirmngr[5892.1] getnameinfo returned for '127.0.0.1':
'localhost'
2014-11-26 20:35:55 dirmngr[5892.1] can't connect to '127.0.0.1': Success
2014-11-26 20:35:55 dirmngr[5892.1] error connecting to
'http://127.0.0.1:11371': System error w/o errno
2014-11-26 20:35:55 dirmngr[5892.1] command 'KS_SEARCH' failed: System error w/o
errno

In my case this is because common/http.c (connect_server) ~ line 2200

  ai->ai_family == AF_INET && (flags & HTTP_FLAG_IGNORE_IPv4)

Returns true for 127.0.0.1 (same for 75.75.183.132 which also explains why it
works with gnupg) the address is skipped but it is the only one -> loop finishes
with no errno set.

It is set in dirmngr/ks-engine-hkp.c which looks to me like: "If it is not
indicated that a host either uses IPv4 nor IPv6 ignore it." Which i find kind of
harsh. At least a debug output like:

      if (!hi->v4 && !hi->v6)
        log_debug("Ignoring host\n");

Should be added there and of course connect_server should return an appropiate
error in case it never actually tried to connect to a server.

While debugging this I think I found another issue. You are using errno after
my_connect calls. If this expands to npth_connect the actual calls are

enter_npth()
sem_post() modifies errno
connect()
modifies errno
leave_npth()
sem_wait() //modifies errno

Afaik enter / leave in npth should save errno. I could not confirm that this is
really an issue with a test but I think it is.

Nov 26 2014, 10:35 PM · Bug Report, Keyserver, gnupg (gpg21), dirmngr
aheinecke updated subscribers of T1773: Keyserver search with gnupg 2.1 fails with "System error w/o errno".
Nov 26 2014, 12:39 PM · Bug Report, Keyserver, gnupg (gpg21), dirmngr
aheinecke set Version to 2.1.0 on T1773: Keyserver search with gnupg 2.1 fails with "System error w/o errno".
Nov 26 2014, 12:39 PM · Bug Report, Keyserver, gnupg (gpg21), dirmngr
aheinecke added projects to T1773: Keyserver search with gnupg 2.1 fails with "System error w/o errno": dirmngr, gnupg (gpg21), Keyserver, Bug Report.
Nov 26 2014, 12:39 PM · Bug Report, Keyserver, gnupg (gpg21), dirmngr
aheinecke lowered the priority of T1768: Outlook 2010 crashes and disables GPG4Win 2.2.2. Plugin from Unbreak Now! to Normal.
Nov 26 2014, 12:10 PM · Duplicate, Info Needed, Bug Report, gpg4win