Re: Checking an SSL connection . . .

2000-10-13 Thread Louis LeBlanc
Thank you Lutz and Steve! I used both your suggestions to get this working. Here is what I ended up doing: ssl_connected = 0; while(!ssl_connected) { res = SSL_connect(ssl_con); ssl_connected = ((res == 1) && SSL_is_init_finished(ssl_con)); if (!ssl_connected) { e

Re: Checking an SSL connection . . .

2000-10-12 Thread Steve Quirk
I use this: SSL *ss; int rc, connected; while ( !connected ) { rc = SSL_connect(ss); /* returns '1' on success */ connected = ((rc == 1) && SSL_is_init_finished(ss)); if (rc <= 0) {

Re: Checking an SSL connection . . .

2000-10-12 Thread Lutz Jaenicke
On Wed, Oct 11, 2000 at 06:39:08PM -0400, Louis LeBlanc wrote: > My question now is this: Is there a specific state, or (small) set of > states, that I can check for on any SSL connection (for all versions) > and verify that the connection is established, and ready for some kind > of I/O? Wait f

Re: Checking an SSL connection . . .

2000-10-11 Thread Louis LeBlanc
Ok, it looks like I was mistaken here. The SSL_state() does in fact return the SSL connection status flag, but it is only set to SSL_ST_CONNECT|SSL_ST_BEFORE in some cases, and only when the SSL_connect fails because the handshake didn't complete. There are nearly half a dozen states that could