I am facing problems with CSecureSockets Api. In my P800 application, I need to access a webpage from IIS with SSL certificates installed. In browser I am able to view this page and server certificates. Now I have got a JNI application, which uses CSecureSockets.

1.Created a normal socket connection using RSocket
2.Created CSecureSocket. (I had to install one active scheduler, otherwise CSecureSockets::NewL was crashing)
3.call CSecureSocket-[ gt][/gt]StartClientHandShake(this)
4.User::WaitForRequest(iStatus)........... ..application is hanging at this step...........
5.if i skip step 4, further steps are failing. Send Data fails, GetServerCert returns null