Hi Vineeta,
Thank you for your reply, Now the client code works, I had made a
mistake in assigning the created socket to BIO.
Thank You
naveen.
vinni rathore wrote:
As u said that if u use already provided certificates then it work
fine right... it means that your certificates are not proper at both
end.. means may be there is any mismatching of the certificates.. may
be u r missing something.. it just my assumptions..
Also u sent me the errors that shows there is some reading problem
could u please send me the flow of API's u r using for the ur client
and server...
On Mon, Nov 17, 2008 at 4:34 PM, naveen.bn <http://naveen.bn>
<naveen.bn <http://naveen.bn>@globaledgesoft.com
<http://globaledgesoft.com>> wrote:
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
--
regards,
Vineeta Kumari
Software engg
Mobera Systems
Chandigarh
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]