Try replacing SSL_clear() in the sequence with
SSL_set_shutdown(ssl,SSL_SENT_SHUTDOWN|SSL_RECEIVED_SHUTDOWN);
SSL_shutdown(ssl);
--Douglas Lee
On Wed, 10 May 2000, Amit Chopra wrote:
> Hi,
> This is a more concise version of my earlier posts on the same
> matter.
> When my app comes up I create a pool of SSL structures (using
> SSL_new)that I
> intend to reuse for the connections as follows:
> SSL_clear(ssl);
> SSL_set_accept_state(ssl);
> SSL_set_fd(ssl,client);
> I do this before accepting every client connection.
>
> The problem appears when I follow below steps:
> 1. Open browser and establish connection with my app. I can browse
> others links over SSL as well.(fine)
> 2. Close browser.
> 3. Open browser again and establish connection with my app.
> My app fails saying "Error in get client hello B".
> This also happens when I cancel the certificate message that the
> broswers show.
> The problem happens with both IE(5) and Netscape(4.7).
> Using 0.9.4 SSL_read used to return with SSL_ERROR_WANT_READ.
> Using 0.9.5a SSL_read returns ERROR_SSL (Navigator 4.7).
>
> The problem disappers when I do a SSL_new for every connection.
>
> What might I be doing wrong here? I believe that the SSL state machine
> is not getting
> reset properly. What can I do to fix this? I want to avoid SSL_new
> everytime as I wish to
> avoid fragmentation.
>
> Would appreciate any help,
> Thanks,
> Amit.
> ______________________________________________________________________
> OpenSSL Project http://www.openssl.org
> Development Mailing List [EMAIL PROTECTED]
> Automated List Manager [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]