This was a change in behavior in 2.1 (relative to 2.0 / 1.4) in which instead of
taking the last specified key server, all key servers were used. I've now
reverted this in f26ba14028d34845ae10aae552b90681907e377d.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Mar 28 2015
Mar 25 2015
Changing component to gnupg with topic dirmngr in the hope to get more
visibility and because dirmngr is part of the gnupg repo in 2.1
Mar 19 2015
Thanks. Fixed with commit dc10d46.
Mar 17 2015
Patch and commentary uploaded to T1792, where it really belongs.
The attached patch fixes hkps: hostname verification and makes
hkps: use SNI correctly.
The patch is against GnuPG 2.1.2. It has been tested successfully against
hkps://hkps.pool.sks-keyservers.net on FreeBSD 10.1 using GnuTLS 3.2.21 and the
2.1 setup instructions at https://sks-keyservers.net/overview-of-pools.php#pool_hkps
Mar 15 2015
Mar 10 2015
Except the for doubled listing, is there any other potential drawback?
Mar 3 2015
Compiling with latest npth instead of latest pth does not change anything.
Without patch = segfault, with patch = works.
Feb 18 2015
Feb 17 2015
This problem is due to ldap_wrapper creating processes with gnupg_spawn_process
but while gnupg_spawn_process states that you have to call gnupg_wait_process
and gnupg_release_process afterwards this is not done in the ldap_wrapper.
Sometimes release is called but never wait to get the exit status of the spawned
process and remove the zombie.
If release is not called this will also leak a handle on Windows.
Attached Patch moves the process cleanup in it's own function and calls that
function from where the process should be terminated and cleaned up.
My test for this:
export GNUPGHOME=$(mktemp -d)
echo "11:B9:1B:31:EE:09:E0:84:4D:25:4E:58:7A:65:CE:51:84:F3:6B:70 S" >
$GNUPGHOME/trustlist.txt
gpgsm --verify signed-smime-test.asc
Feb 12 2015
Feb 4 2015
Jan 21 2015
Applied as 091c35e. Thanks.
Jan 13 2015
Jan 5 2015
Sorry, this is not a bug. If you configure with out TLS support it simply can't
do that. In case you are talking about the Windows installer, please note that
this binary version is marked as experimental with several limitations
Jan 4 2015
Dec 22 2014
Well, that is quite possible. I have seen other reports about this. I have not
yet come around to look at the hkps bugs.
Dec 20 2014
Dec 19 2014
original; report was for the dirmngr package. Won't fix it there.
dirmngr is now part of gnupg proper.
Original report was for dirmngr-1.1.0.
Dec 18 2014
The sem_post in enter_pth can't set ERRNO because we assert the return value
later. However, the sem_wait in leave_npth has the usual EINTR protection and
thus changes ERRNO. Needs to be fixed.
Dec 17 2014
Okay, fixed with commit 5cb6df8.
Dec 16 2014
No this was on "the master of the day"
And with the dead server detection the case for "localhost lookup" already got
better.
But you could look at npth src/npth.c
I am pretty sure that npth_enter and npth_leave modify errno and that this
causes at least npth_connect not to set errno as expected.
This was straight 2.1.0, right? Please try again with 2.1.1 there are just to
many bugs fixs that it is not worth to look at 2.1.0. If it is still the case I
can look at (although that you assigned yourself ;-)
Dec 15 2014
I had another go at this bug this evening. I had a keyserver with reproducable
failures (while I still could use it in gpg1). And suddenly during debugging it
all changed and worked flawlessly. I was down to npth_connect and after I had
added debug output in there it began to work (and kept working after removing
the debug output again, hrmpf)
With regards to the test case from T1773 (aheinecke on Nov 26 2014, 10:35 PM / Roundup). This now (after e8c0ed7 ) returns a
dead host.
Btw. I think the error message could be improved for dead hosts.
gpg2 --keyserver hkp://127.0.0.1 --search foobar
gpg: no keyserver known (use option --keyserver)
gpg: keyserver search failed: No keyserver available
Should be something like "No reachable keyserver found"
Assigned this bug to me to at least provide a clearer example.
Thanks for fixing the 127.0.0.1 lookup error :)
As noted on the ML we do our own selection from the pool and consider only A and
AAAA records. This needs to be changed of course. Unfortunately this won't go
into 2.1.1.
Dec 12 2014
Dec 9 2014
Nov 26 2014
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 7 2014
That is really not a bug but a design decision.
The keyserver interface in dirmngr is quite modular and the idea is to add new
interfaces as need arises. Simlar to the smartcard support in scdaemon.
Given that there is no more need for copyright assignments, adding patches shold
not be major problem. So, yes pacthes are accepted - please do it for now as a
complete separate ks-engine-hkpms.c. If we later see that it shares much code
with *-hpk we can merge it then. This better isolates bugs.
Nov 6 2014
Aug 11 2014
With dirmngr 1.1.1 and libgcrypt-1.6.0 (gpg4win-2.2.2-beta19) I have what I
think is a similar error on Windows:
C:\Users\aheinecke>"c:\Program Files\GNU\GnuPG\dirmngr.exe"
dirmngr[3060]: Fatal: can't register GNU Pth with Libgcrypt: Not supported
Doesn't crash though. I've not tested the pth_init patch. If you think this is
useful please tell me and I will do so. I assume it will also fix this problem.
Apr 25 2014
Jan 27 2014
Thanks.
Changing category to dismngr to remind about doing a release.
Dec 19 2013
To also fix Issue1449, enhance my correction this way:
rc = ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, LDAP_VERSION3); if (rc) { log_error (_("setting LDAPv3 for `%s:%d' failed: %s\n"), host, port, ldap_err2string (rc)); /* FIXME: Need deinit (ld)? */ return -1; } rc = ldap_simple_bind_s (ld, opt.user, opt.pass); if (rc) { log_error (_("binding to `%s:%d' failed: %s\n"), host, port, ldap_err2string (rc)); /* FIXME: Need deinit (ld)? */ return -1; }
And add translations for the new error message.
Thank you
Apr 19 2013
Oct 21 2012
Mar 26 2012
This is an old one, but we may want to get a new dirmngr release out anyway.
Jan 3 2012
May 30 2011
I merged in the translation to the gnupg package, where dirmngr now resides.
May 19 2011
Dirmngr 2.1.0-gitde7cfc0 also stays active.
Testing the fix:
May 18 2011
Oh well, the svn syncing stopped quite some time ago. Just renabled it and 347
should no be on cvs.gnupg.org
May 17 2011
The repository contains outdated translations. Before releasing gnupg-2.0.17, I
had been poked by Werner and I have sent updated translation of gnupg2 back.
It's part of 2.0.17 release. You must have stored current translation somewhere
else.