SSL_Connect sys call taking more time

2013-05-05 Thread Arjun SM
Hi all, I have a daemon where I am trying to retrieve the common name from the certificate during an HTTPS connection. What i am observing is that , SSL_Connect() function is taking more time to connect on some of the websites. I am trying on Mac OS X 10.8.3. Below is the code I have been using a

Re: SSL_Connect call gives SSL_ERROR_WANT_READ for non blocking sockets

2011-11-22 Thread Arjun SM
approach. Hope I am able to convey my understandings for these functions. If you feel that I dont, please help in understanding the same. ~Arjun On Mon, Nov 21, 2011 at 8:10 PM, Michael S. Zick wrote: > On Mon November 21 2011, Arjun SM wrote: > > Well yes, these are not errors. My bad f

Re: SSL_Connect call gives SSL_ERROR_WANT_READ for non blocking sockets

2011-11-21 Thread Arjun SM
Well yes, these are not errors. My bad for naming the variable as 'error'. ~Arjun On Thu, Nov 17, 2011 at 11:50 PM, Michael S. Zick wrote: > On Thu November 17 2011, Arjun SM wrote: > > Hi, > > Thanks for the reply. > > I have called the ssl_connect() fu

Re: SSL_Connect call gives SSL_ERROR_WANT_READ for non blocking sockets

2011-11-17 Thread Arjun SM
e: > Hi, Arjun, > > For non-blocking case, you have to handle SSL_ERROR_WANT_READ and > SSL_ERROR_WANT_WRITE > In that case you need to redo *SSL_connect.* > * > * > Huaqing > > On Tue, Nov 15, 2011 at 5:51 AM, Arjun SM wrote: > >> Hi all, >>I a

SSL_Connect call gives SSL_ERROR_WANT_READ for non blocking sockets

2011-11-15 Thread Arjun SM
Hi all, I am newbie to openssl any help is greatly appreciated. I have a requirement of fetching the Common name (domin name ) from the certificate that I request from any HTTPS websites. I followed the regular method of 1. establish a connection with the ip address using *connect() *system c