Error in CERT_ImportCerts

2008-09-24 Thread brianhks
The following is my code to import a der encoded CA certificate. I'm getting a memory access down in CERT_ImportCerts. It looks like it is trying to access a pointer that is set to 0x3 instead of a valid pointer. So I have two questions is this code the correct way of doing it? Does anyone have

How do I find what an error code is

2008-09-19 Thread brianhks
When I call NSS_InitReadWrite I get (-5977) as the error code from PORT_GetError. I'm having a hard time trying to find error codes in this range, where do I look? Thanks ___ dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.m

Adding CA certificate via API

2008-09-19 Thread brianhks
I'm writing a utility as part of an automated install program that will open the Firefox certificate database and install a local CA certificate. This is what I've tried: dbHandle = (CERTCertDBHandle*)PORT_ZAlloc(sizeof(CERTCertDBHandle)); rv = CERT_OpenCertDBFilename(dbHandle, (char*)dbPath.c_st