openpgp-certs failure under wine

Simon Josefsson simon at josefsson.org
Wed Jun 11 10:41:11 CEST 2008


The gnutls-serv started from openpgp-certs doesn't seem to start under
Wine, here is the output:

jas at mocca:~/gnutls4win/build/gnutls-2.3.14/tests/openpgp-certs$ ../../src/gnutls-serv -q -p 5557 --pgpcertfile ../../../../src/gnutls-2.3.14/tests/openpgp-certs/srv-public-127.0.0.1-signed.gpg --pgpkeyfile ../../../../src/gnutls-2.3.14/tests/openpgp-certs/srv-secret.gpg -d 4711
NOTE: you should run 'diskperf -y' to enable the disk statistics
DBG: rndw32: get performance data problem: ec=2
Set static Diffie Hellman parameters, consider --dhparams.
|<2>| ASSERT: ../../../../src/gnutls-2.3.14/lib/openpgp/privkey.c:125
|<2>| ASSERT: ../../../src/gnutls-2.3.14/lib/gnutls_openpgp.c:379
|<2>| ASSERT: ../../../src/gnutls-2.3.14/lib/gnutls_openpgp.c:500
Error[-59] while reading the OpenPGP key pair ('../../../../src/gnutls-2.3.14/tests/openpgp-certs/srv-public-127.0.0.1-signed.gpg', '../../../../src/gnutls-2.3.14/tests/openpgp-certs/srv-secret.gpg')
Error: GnuTLS internal error.
Echo Server ready. Listening to port '5557'.

select(): Success
jas at mocca:~/gnutls4win/build/gnutls-2.3.14/tests/openpgp-certs$ 

I can reproduce the openpgp key import error using certtool and the
particular OpenPGP file:

jas at mocca:~/gnutls4win/build/gnutls-2.3.14/tests/openpgp-certs$ ~/gnutls4win/build/gnutls-2.3.14/src/certtool --pgp-certificate-info --infile ../../../../src/gnutls-2.3.14/tests/openpgp-certs/srv-public-127.0.0.1-signed.gpg -d 4711
NOTE: you should run 'diskperf -y' to enable the disk statistics
DBG: rndw32: get performance data problem: ec=2
|<2>| ASSERT: ../../../../src/gnutls-2.3.14/lib/openpgp/pgp.c:124
certtool.exe: Import error: GnuTLS internal error.
jas at mocca:~/gnutls4win/build/gnutls-2.3.14/tests/openpgp-certs$ 

Tracing it further, it seems it OpenCDK is returning EOF when parsing
the OpenPGP key, I'm not sure why.

Nikos, can you reproduce this?  You'll need to install mingw32, wine,
binfmt-support and run ./configure --host=i586-mingw32msvc
--build=i686-pc-linux-gnu if you are using debian.

I'm leaving now, but will look into this next week unless you or someone
else has had time to debug it.

/Simon





More information about the Gnutls-devel mailing list