Then, i'm doing that:
SSL * connection=SSL_new(ctx);
SSL_set_bio(connection,bio,bio);
SSL_set_connect_state(connection);
if( SSL_do_handshake(connection) <=0 )
{
return false;
}
I'm not a guru on this and my experience is with native sockets
instead of BIO but your code should actually do SSL_connect at that
time instead of SSL_do_handshake.
SSL* connection = SSL_new(ctx);
SSL_set_bio(connection,bio,bio);
if (SSL_connect(mSSL_con) != 1)
{
...
--
Olivier Mascia
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]