vinni rathore wrote:
What is ur failure error messages can u please send them...
On Fri, Nov 14, 2008 at 10:21 PM, Michael Simms
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
> I am a new to SSL. I have installed openssl and using the SSL
APIs , I have
> written a small client - server
> program in C, but SSL_connect fails from client end and
SSL_accept fails from
> server. I have generated the root CA certificate, which I have
used to sign
> both the client and server certificate.
Are you aware you need to call SSL_connect and SSL_accept a number of
times, checking the error return to see if it WANTS_READ or
WANTS_WRITE, and reading/writing as appropriate? It can take a number
of calls to to the connect/accept before it finishes the job.
Thanks
--
Michael Simms
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List
openssl-users@openssl.org <mailto:openssl-users@openssl.org>
Automated List Manager
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
regards,
Vineeta Kumari
Software engg
Mobera Systems
Chandigarh
Hi ,
Thanks for the reply.
After the SSL_connect(ssl) , I called SSL_get_error(ssl,ret) and the ret
value is 0 always .
At the server end SSL_accept returns 0 with SSL_ERROR_NONE.
Is there any other way of debugging the client code to find out wher it
is failing.
If i use the same certificates with the command line server and client
provided with the openssl tool it works.
Thanks and regards
naveen