Re: SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-06 Thread D3|\||\|!$
I tried running my "C++" server in debug mode against my "C" client. Now my send function is throwing error -5978(PR_NOT_CONNECTED_ERROR - "Network file descriptor is not connected"). I'm able to recieve packets on the same socket from the client but cannot send it the other way... What could be t

Re: SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-05 Thread Nelson Bolyard
D3|\||\|!$ wrote, On 2008-03-05 20:32: >> If so, here's a hint: regardless of the value of i, the expression >> (i<10,000) always has a value of zero. > > Well!! I believe you're mistaking C code for some-alien-programming- > language... Try running/debugging the code below: should clarify your

Re: SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-05 Thread D3|\||\|!$
> If so, here's a hint: regardless of the value of i, the expression >  (i<10,000)  always has a value of zero. Well!! I believe you're mistaking C code for some-alien-programming- language... Try running/debugging the code below: should clarify your confusion... *

Re: SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-05 Thread Nelson Bolyard
D3|\||\|!$ wrote, On 2008-03-05 03:02: > for (int i =0; ((i<10,000) && (err_status != PR_SUCCESS)); i++) { Is that literally an exact copy of the code in your program? If so, here's a hint: regardless of the value of i, the expression (i<10,000) always has a value of zero. > The client on

Re: SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-05 Thread D3|\||\|!$
On Mar 4, 5:50 pm, Nelson Bolyard <[EMAIL PROTECTED]> wrote: > D3|\||\|!$ wrote, On 2008-03-04 04:19: > > >> selfserv uses blocking sockets. > > > I tried turning the PR_SockOpt_Nonblocking given at the below link to > > PR_TRUE to see if the clien't behaviour changed but now the PR_Accept > > func

Re: SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-04 Thread Nelson Bolyard
D3|\||\|!$ wrote, On 2008-03-04 04:19: >> selfserv uses blocking sockets. > > I tried turning the PR_SockOpt_Nonblocking given at the below link to > PR_TRUE to see if the clien't behaviour changed but now the PR_Accept > function is throwing PR_WOULD_BLOCK_ERROR(The operation would have > blocked

Re: SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-04 Thread D3|\||\|!$
> selfserv uses blocking sockets. I tried turning the PR_SockOpt_Nonblocking given at the below link to PR_TRUE to see if the clien't behaviour changed but now the PR_Accept function is throwing PR_WOULD_BLOCK_ERROR(The operation would have blocked). How do I circumvent this..??? Kindly suggest a

Re: SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-04 Thread D3|\||\|!$
On Mar 4, 1:42 pm, Nelson Bolyard <[EMAIL PROTECTED]> wrote: > D3|\||\|!$ wrote, On 2008-03-03 21:57: > > > Hi All!!! > > > I wrote an SSL server similar to selfserv.c > > SSL_ConfigServerSessionIDCache is reinitializing the > > Server_Certificate_Nickname string to "", due to which the application

Re: SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-04 Thread Nelson Bolyard
D3|\||\|!$ wrote, On 2008-03-03 21:57: > Hi All!!! > > I wrote an SSL server similar to selfserv.c > SSL_ConfigServerSessionIDCache is reinitializing the > Server_Certificate_Nickname string to "", due to which the application > is not able to find out the certificate or the private key in the >

SSL_ConfigServerSessionIDCache re-initializing nickname string.

2008-03-04 Thread D3|\||\|!$
Hi All!!! I wrote an SSL server similar to selfserv.c accessible at the link below: http://lxr.mozilla.org/security/source/security/nss/cmd/selfserv/selfserv.c The options configuration string I passed to the application is "-n Server_Certificate_Nickname -d Certificate_Database_Path -w Password