[openssl-users] Rehandshake problem

Matt Caswell matt at openssl.org
Fri Nov 13 10:08:16 UTC 2015



On 13/11/15 08:37, Ignacio Casal wrote:
> Hey guys,
> 
> I am having a specific problem that I do not seem to find a solution for.
> 
> - I have a server and a client that handshake properly
> - the server will read from the client and the client from the server a
> few bytes
> - the client will try to read again
> - the server will try to handshake again by calling SSL_renegotiate and
> SSL_do_handshake. I get no errors in these calls.
> - then I would expect the client to exit from the read call with an
> error saying that needs to handshake again, instead it stays blocked on
> the read until the server sends some data. But then I get an error
> server side that there was no proper handshaking.
> 
> Do you know how to get a notification client side that the client needs
> to handshake again when blocked on a read or write?

Which OpenSSL version/platform are you using? Can you get a pcap packet
trace and post the specific errors that you are receiving?

You would normally expect to get an SSL_ERROR_WANT_READ on the client
side when the server sends the HelloRequest.

Matt



More information about the openssl-users mailing list