Hi,
This is how I do
renegotiation in my server (error handling omitted for
clarity).
SSL_renegotiate(pSsl);
SSL_do_handshake(pSsl);
pSsl->state =
SSL_ST_ACCEPT;
SSL_do_handshake(pSsl);
My client and server has
two threads each: a reader thread and a writer thread.
I have put the
renegotiation code in the reader thread. It works for most
of the time but
occasionally the client gets an "Encrypted Alert" message
( I suspect that this
happens when the application data somehow gets in-between).
How can I do renegotiation
if both my client and server communicate on a duplex
channel with reader and
writer threads?
Thanks.