[Help-gnutls] Another one: A TLS packet with unexpected length was received.

Nikos Mavrogiannopoulos nmav at gnutls.org
Sat Sep 20 13:27:40 CEST 2008


Lennart Koopmann wrote:
> Hello everyone,
> 
> i am currently implementing a handshaking procedure. Everything works
> fine when the client chooses not to use TLS. But when TLS is requested,
> the gnutls_handshake() fails.
> 
> The client reports the following error: GNUTLS ERROR: A TLS packet with
> unexpected length was received.
> 
> The server reports no error, because gnutls_handshake() seems to wait
> for something and just blocks.
> 
> Here is some debug data (loglevel 7).
> 
> --------------- Server ---------------

> 
> As there seems to be handshaking conversation and the client starts the
> conversation I don't know where to search for the error. Client and
> server and both on the same machine, using the same GNUTLS library.

There must be an error with your transport layer functions. Can you
verify that the data actually arrive to gnutls functions? Do you see
data on the network?

regards,
Nikos





More information about the Gnutls-help mailing list