I think the issue could be with initialization. As far as my
understanding goes, mozilla does the NSS initialization stuff when it starts
up. So it seems it is getting done twice. Try commenting out your
initialization call. Also comment out NSS_Shutdown() call, if you are doing
it. I would suggest you to do the following for the SSL client:

1) call: SSL_ImportFD
2) Set various options like SSL_SECURITY, SSL_ENABLE_SSL3, SSL_ENABLE_SSL2,
SSL_ENABLE_TLS, SSL_V2_COMPATIBLE_HELLO, SSL_HANDSHAKE_AS_CLIENT.
3) Set up callbacks: SSL_AuthCertificateHook, SSL_BadCertHook,
SSL_HandshakeCallback, 
4) Finally call SSL_ResetHandshake with 2nd parameter as PR_FALSE


Umesh.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:dev-tech-crypto-
> [EMAIL PROTECTED] On Behalf Of D3|\||\|!$
> Sent: Saturday, February 16, 2008 4:37 PM
> To: dev-tech-crypto@lists.mozilla.org
> Subject: SSL_AuthCertificate returning socket error!!!
> 
> Hi All!!!
> 
> I just wrote a wrapper for a single process SSL client server in which
> I have followed the initialization - configuration method used in
> selfserv.exe.
> 
> But now, SSL_AuthCertificate is returning "Network File Descriptor Not
> Connected" error (Actually PR_GetError).
> I am at a loss to figure out what happened.... Need hints as to what
> went wrong...
> 
> Warm Regards,
> D3|\||\|!$
> _______________________________________________
> dev-tech-crypto mailing list
> dev-tech-crypto@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-crypto
> 
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.20.4/1277 - Release Date: 2/13/2008
> 8:00 PM
> 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.20.4/1277 - Release Date: 2/13/2008
8:00 PM
 


_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to