RE: non-blocking version of SSL_peek

2008-10-10 Thread vne
David Schwartz wrote: > > >> Hi, >> Can anyone tell me if SSL_peek is a blocking or non-blocking call ? > > It can be either. > >> When I use it inside my code, then the program blocks on this fuction >> call >> where there is no data on the socket. > > If you're using blocking socket calls

non-blocking version of SSL_peek

2008-10-08 Thread vne
Hi, Can anyone tell me if SSL_peek is a blocking or non-blocking call ? When I use it inside my code, then the program blocks on this fuction call where there is no data on the socket. The reason I want to use this call is that before closing the SSL connection by using 'SSL_shutdown', I want to m

Re: Help reagarding socket calls in SSL needed

2008-09-26 Thread vne
The tcp socket calls are accessed by macros defined in file e_os.h. Is it all what you want to know? prashanth s joshi wrote: > > Hi SSL experts, > I am using the s_client.c and the s_server.c for my ssl client and server. > I > need to find the socket calls such as send and recv. ie SSL_writ

PRNG not seeded problem on PPC604 (vxWorks 5.5)

2008-09-17 Thread vne
Hi, I am using openSSL 0.9.7b on PPC604 vxWorks Board. During initilization of OpenSSL with DHparam file, following flow is used: pDHParamfp /* file pointer to dhparam.pem file */ .. dh = PEM_read_DHparams(pDHParamfp, sdf_co_null, Sdf_co_null, Sdf_co_null); ..SSL_CTX_set_tmp_dh(pSslCtx, dh); fro

RE: Problem in using SSL_accept on vxWorks 5.5 (Pentium)

2008-09-12 Thread vne
; } So, this kind of condition should be put for every non-blocking SSL call ? vne wrote: > > Hi, > I replaced the call to SSL_select to this one and it worked !!! Thanks for > your help. > > int i =0; > while(1 == i) > { >

RE: Problem in using SSL_accept on vxWorks 5.5 (Pentium)

2008-09-12 Thread vne
kind of condition should be put for every non-blocking SSL call ? vne wrote: > > You are right that I am making a non-blocking SSL_accept call. > > The problem is on vxWorks when 'select' states that some connection > request is present, SSL_accept returns f

RE: Problem in using SSL_accept on vxWorks 5.5 (Pentium)

2008-09-12 Thread vne
You are right that I am making a non-blocking SSL_accept call. The problem is on vxWorks when 'select' states that some connection request is present, SSL_accept returns failure with error code as SSL_ERROR_WANT_READ. But if I add some delay in between this 'select' and 'SSL_accept', then it ret

Problem in using SSL_accept on vxWorks 5.5 (Pentium)

2008-09-12 Thread vne
Hi, I am trying to use SSL_accept on vxWorks 5.5 (Pentium). But when the SSL client sends the initial handshake message (Client Hello), then SSL_accept returns failure with error as SSL_ERROR_WANT_READ. The same code works fine when used on Linux platform and handshake completes successfully. On