Ruchi Lohani wrote, On 2008-08-15 16:35:
> Hi,

> I have been using NSS for quite some time now. If using NSS and cURL
> (built with NSS) simultaneously in the application running on browser,
> it is going to be a problem. As, while curl_global_cleanup (), it calls
> NSS_Shtdown internally and is there a possibility that firefox will work
> properly after NSS_Shutdown () is called?

Yes, shutting down NSS in Firefox while Firefox thinks that NSS is still
initialized will cause problems for Firefox.  I'm pretty sure.

> I remember reading one of Nelson’s reply for a post that the browser
> should take care of doing NSS_Shutdown(). Any comments on this.
> 
> Please let me know if I am unclear. (I might be !)

The glue code in Mozilla clients (such as Firefox) that connects those
clients to NSS is named PSM.  I think there are PSM functions that you might
use to coordinate your use of NSS (such as initializing NSS) with
the browser, but I don't know what they are.  If PSM has initialized NSS,
then PSM will shut it down when the browser exits.  You can count on that.

If you ensured that NSS was initialized by calling a PSM function to do it,
you could then count on PSM to shut it down for you when the browser exits,
I believe.

I hope one of the PSM developers will see your question and provide an
answer for that soon.
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to