Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NSS/NSPR on OS/2

6 views
Skip to first unread message

Marty

unread,
Feb 7, 2010, 10:59:22 PM2/7/10
to
I'm trying to use the NSS/NSPR DLLs from Firefox on OS/2 for another
application (libpurple, an instant messaging library). I'm linking up
with them correctly (as far as I can tell), and initializing them in a
standard way, but when I make my first calls into the DLLs, I get a GPF
unless Firefox is already running on the system. When I have Firefox
running, everything seems to work well and I can make SSL connections
through NSS successfully.

My app is GCC and GLIB-based. Is it possible that the CRTL within the
NSS DLLs are not getting initialized correctly? Or is there some other
problem in my initialization process? Here is the code snippet that
starts things up:

static void
ssl_nss_init_nss(void)
{
char *lib;

PR_Init(PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 1);
NSS_NoDB_Init(".");

lib = g_strdup("nssckbi.dll");
SECMOD_AddNewModule("Builtins", lib, 0, 0);
/* GPF right on the above line if Firefox isn't running. */

g_free(lib);
NSS_SetDomesticPolicy();

SSL_CipherPrefSetDefault(TLS_DHE_RSA_WITH_AES_256_CBC_SHA, 1);
SSL_CipherPrefSetDefault(TLS_DHE_DSS_WITH_AES_256_CBC_SHA, 1);
SSL_CipherPrefSetDefault(TLS_RSA_WITH_AES_256_CBC_SHA, 1);
SSL_CipherPrefSetDefault(TLS_DHE_DSS_WITH_RC4_128_SHA, 1);
SSL_CipherPrefSetDefault(TLS_DHE_RSA_WITH_AES_128_CBC_SHA, 1);
SSL_CipherPrefSetDefault(TLS_DHE_DSS_WITH_AES_128_CBC_SHA, 1);
SSL_CipherPrefSetDefault(SSL_RSA_WITH_RC4_128_SHA, 1);
SSL_CipherPrefSetDefault(TLS_RSA_WITH_AES_128_CBC_SHA, 1);
SSL_CipherPrefSetDefault(SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, 1);
SSL_CipherPrefSetDefault(SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, 1);
SSL_CipherPrefSetDefault(SSL_DHE_RSA_WITH_DES_CBC_SHA, 1);
SSL_CipherPrefSetDefault(SSL_DHE_DSS_WITH_DES_CBC_SHA, 1);

_identity = PR_GetUniqueIdentity("Purple");
_nss_methods = PR_GetDefaultIOMethods();
}

I don't know if these newsgroups are even read anymore, but please
forward this to someone who can help if you read this.

--
[Reverse the parts of the e-mail address to reply.]

Steven Levine

unread,
Feb 8, 2010, 1:47:02 PM2/8/10
to
On Mon, 8 Feb 2010 03:59:22 UTC, Marty <n...@comcast.martyamodeo>
wrote:

Hi Marty,

The netscape.public.mozilla.os2 newsgroup is effectively dead. I
recommend you repost to mozilla.dev.ports.os2.

Steven

Steven Levine

unread,
Feb 8, 2010, 1:58:15 PM2/8/10
to
On Mon, 8 Feb 2010 18:47:02 UTC, "Steven Levine"
<ste...@nomail.earthlink.net> wrote:

Testing...

Steven

--
---------------------------------------------------------------------
Steven Levine <ste...@earthlink.bogus.net>
eCS/Warp/DIY etc. www.scoug.com www.ecomstation.com
---------------------------------------------------------------------

Allodoxaphobia

unread,
Feb 8, 2010, 4:55:26 PM2/8/10
to


Wow! I'd forgotten that I had this ng in my slrn file!

Jonesy
--
Marvin L Jones | jonz | W3DHJ | linux
38.24N 104.55W | @ config.com | Jonesy | OS/2
* Killfiling google & XXXXbanter.com: jonz.net/ng.htm

0 new messages