[Fwd: Need help on NonBlock SSL Renegotiation]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Fwd: Need help on NonBlock SSL Renegotiation]

Gayathri Sundar-2
---------------------------- Original Message ----------------------------
Subject: Need help on NonBlock SSL Renegotiation
From:    "Gayathri Sundar" <[hidden email]>
Date:    Thu, June 9, 2005 1:39 am
To:      '[hidden email]'
--------------------------------------------------------------------------

Hi.,

Could someone please tell me whats wrong here,
I am trying to do SSL_Renegotiation on non blocking sockets
and the response from client is there in the TCP recv q, what function
should I call to read that? I really dont have any clue asto whats missing
here.

tcp       86      0 rh.intotoind.com:https  192.168.5.54:2098      
ESTABLISHED

T_INT32 IGW_SSL_Start_Rehandshake(SSL *pSSL)
{
  SSL_renegotiate(pSSL);
  SSL_do_handshake(pSSL);
  if(pSSL->state != SSL_ST_OK)
  {
    return T_FALSE;
  }
  pSSL->state |= SSL_ST_ACCEPT;
  SSL_do_handshake(pSSL);
  if(pSSL->state != SSL_ST_OK)
  {
    return T_FALSE;
  }
  return T_TRUE;
}

Thanks
--Gayathri

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [hidden email]
Automated List Manager                           [hidden email]