Ok...

Sorry, maybe that was the wrong question altogether...
I am trying to signal my blocking connection thread to end while OpenSSL is
negotiating a connection with SSL_connect.

Is there any way to tell SSL to stop once it enters SSL_connect, perhaps
with a non-blocking approach?

Pseudocode Eg:

////////////////////////////////////////

SSL_connect
While not connected and not signalled
        Sleep(1)
Wend
If signalled exit

...
SSL_get_peer_certificate
...
Send data
...
/////////////////////////////////////////

What is happening is that my application blocks until the SSL negotiation
takes place.

Thanks!
Pj.




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Schwartz
Sent: Tuesday, 31 May 2005 2:00 PM
To: openssl-users@openssl.org
Subject: RE: Checking for socket read state


> Hi all quick question of you guru's.
>
> If I wish to check to see if data is ready to be read on my SSL connection
> do I just use normal "select" or is there something in the SSL libraries
> that I need to use?

        You aren't asking a precise question. For example, if there's data
that
could be read on the socket, but it's just a chunk of SSL protocol data with
no application data, does that mean data is ready to be read? Or not? If you
want to tell if there's data that the kernel has received over the network
that the SSL engine has not yet processed, 'select' can tell you that. Or
are you trying to find out if there's data that's ready for the application
that's already been processed by SSL? Or are you trying to tell if you
should ask the SSL engine to process data in the hopes of producing data for
the application to read?

        DS


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.3.0 - Release Date: 30/05/2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.322 / Virus Database: 267.3.0 - Release Date: 30/05/2005
 

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to