[Help-gnutls] Strange error when using libgnutls

Pedro Corte-Real typo at netcabo.pt
Mon May 17 23:43:29 CEST 2004


When using a slightly modified version of the example code at:

http://www.gnu.org/software/gnutls/documentation/gnutls/gnutls.html#SECTION00731000000000000000

The only modification I've done is to run gnutls_record_recv in a loop
to fetch everything until it gets an error or EOF.

The file is attatched.

I get this error:

"A TLS packet with unexpected length was received."

This happens when receiving the last block of information when
gnutls_record_recv returns an error (-9) instead of 0 for EOF.

I'm using libgnutls10 from debian sid at version 1.0.4-3.

I can reproduce this reliably against my local apache-ssl (OpenSSL)
server. This does not seam to happen when testing with
https://www.gnutls.org:5555/.

I'm not subscribed to the list so please CC me on replies.

Greetings,

Pedro Côrte-Real.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fetcher_ssl.c
Type: text/x-csrc
Size: 2997 bytes
Desc: not available
URL: </pipermail/attachments/20040517/bf22bb6f/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: </pipermail/attachments/20040517/bf22bb6f/attachment.pgp>


More information about the Gnutls-help mailing list