Hi,I tried what you proposed but it did exactly the same thing.At reading time, 
the SSL_read return -1.With SSL_get_error(connection,ret) i saw that the error 
was SSL_ERROR_SYSCALL.ERR_get_error() returns 0.Does it help to understand what 
is going on?> From: [EMAIL PROTECTED]> Subject: Re: OpenSSL,SMTP,STARTTLS how 
does it work?> Date: Fri, 4 May 2007 12:32:09 +0200> To: 
openssl-users@openssl.org> > > > 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]
_________________________________________________________________
Essayez Live.com et créez l'Internet qui vous ressemble : infos, sports, météo 
et bien plus encore !
http://www.live.com/getstarted

Reply via email to