Re: SSL_connect and SSL_accept

2007-03-30 Thread Urjit Gokhale
Thanks for replying. I guess we are on the same page now. The only thing is that you are asking the same question that I am asking everyone on this list "What scenario may cause the SSL_connect to return error to the caller, without writing a single byte on the underlying tcp connection (which

Re: SSL_connect and SSL_accept

2007-03-30 Thread Gayathri Sundar
Thanks for replying. I guess we are on the same page now. The only thing is that you are asking the same question that I am asking everyone on this list "What scenario may cause the SSL_connect to return error to the caller, without writing a single byte on the underlying tcp connection (which

Re: SSL_connect and SSL_accept

2007-03-30 Thread Urjit Gokhale
I have spent quite some time with SSL_connect, and apart from tcp level socket failures (transient/fatal) and SSL Handshake failures it cannot return error, so ur case is NOT POSSIBLE unless the HOST has run out of memory wherein Openssl_malloc itself fails. So I dont suppose you need to worry ab

Trouble compiling and openssl 0.9.8 d or e on solari10

2007-03-30 Thread Frederic Goudal
Hello, I'm in trouble with openlls 0.9.8 on solaris10 : I compile it either witch gcc or sun cc (studio11), and when I try an s_client command on our web server I got the following error : /opt/openssl-0.9.8e/bin/openssl s_client -host www -port 443 CONNECTED(0004) depth=1 /C=FR/O=CRU/CN=a

Re: Trouble compiling and openssl 0.9.8 d or e on solari10

2007-03-30 Thread Laurent Blume
Frederic Goudal a écrit : > I'm in trouble with openlls 0.9.8 on solaris10 : I compile it either > witch gcc or sun cc (studio11), and when I try an s_client command on > our web server I got the following error : Did you patch Studio 11? the original version had issues with OpenSSL when built wit

Re: Trouble compiling and openssl 0.9.8 d or e on solari10

2007-03-30 Thread goudal
Laurent Blume <[EMAIL PROTECTED]> > Date: Fri, 30 Mar 2007 16:39:02 +0200 > Subject: Re: Trouble compiling and openssl 0.9.8 d or e on solari10 >Frederic Goudal a écrit : >> I'm in trouble with openlls 0.9.8 on solaris10 : I compile it either >> witch gcc or sun cc (studio11), and when I try an s

Re: Trouble compiling and openssl 0.9.8 d or e on solari10

2007-03-30 Thread Laurent Blume
[EMAIL PROTECTED] a écrit : > I don't know. Which patch ? Those are the latest for Studio 11 on Solaris x86: 120759-10 Sun Studio 11_x86: Sun Compiler Common patch for x86 backend 120762-03 Sun Studio 11_x86: Patch for Performance Analyzer Tools 121016-05 Sun Studio 11_x86: Patch for Sun C_x86 5

Re: Trouble compiling and openssl 0.9.8 d or e on solari10

2007-03-30 Thread goudal
Laurent Blume <[EMAIL PROTECTED]> > Date: Fri, 30 Mar 2007 17:12:12 +0200 > Subject: Re: Trouble compiling and openssl 0.9.8 d or e on solari10 >[EMAIL PROTECTED] a écrit : >> I don't know. Which patch ? > >Those are the latest for Studio 11 on Solaris x86: > >120759-10 Sun Studio 11_x86: Sun Co

RE: Really confusing with SSL_write

2007-03-30 Thread Mark
Hi, > I've been trying to figure out (plus testing) how to actually > use SSL_write. Call SSL_write with the same parameters until it succeeds. You need to handle WANT_READ and WANT_WRITE return values. Mark __ OpenSSL Projec

RE: SSL_connect and SSL_accept

2007-03-30 Thread David Schwartz
> So what you are saying is the scenario we have been discussing so far is > possible ONLY in case of memory allocation issues NOT OTHERWISE. > I guess I will have a look at the SSL_connect code before I just > trust this > :-) I would still recommend coding to handle this case. Perhaps the next

Re: Really confusing with SSL_write

2007-03-30 Thread Tommy W
>Hi, > > > I've been trying to figure out (plus testing) how to actually > > use SSL_write. > > Call SSL_write with the same parameters until it succeeds. You need > to handle WANT_READ and WANT_WRITE return values. I guess that is clear enough. but does that imply if I call SSL_write(ssl, buffe

RE: Really confusing with SSL_write

2007-03-30 Thread David Schwartz
> > Call SSL_write with the same parameters until it succeeds. You need > > to handle WANT_READ and WANT_WRITE return values. > I guess that is clear enough. > but does that imply if I call > SSL_write(ssl, buffer, len), > it will ONLY return len > or <0 ? > I mean if it returns len/2 (sent on

Re: Really confusing with SSL_write

2007-03-30 Thread Tommy W
On Friday 30 March 2007 22:41, David Schwartz wrote: > > > Call SSL_write with the same parameters until it succeeds. You need > > > to handle WANT_READ and WANT_WRITE return values. > > > > I guess that is clear enough. > > but does that imply if I call > > SSL_write(ssl, buffer, len), > > it wil

RE: Really confusing with SSL_write

2007-03-30 Thread David Schwartz
> I see, so if I disable PARTIAL_WRITES, will that mean that it will return > values as I wrote up there? PARTIAL_WRITES has no effect on the meaning of the return value. It just controls whether or not the internal write logic tries to continue writing if the underlying write partially completes

Compilation Problem on Sun Solaris Optron 10

2007-03-30 Thread Neetee Pawa
Hi All, I have compiled openssl on many unix flavours and it worked fine. When I try on Solaris Optron 10 machine. It gets compiled, however i see Segmentation Fault /core-dump messages. (I am compiling openssl for Cfengine as it is one of its pre-reqs) I recompiled openssl forcefully in solaris