I've posted this in the XPCOM newsgroup, but wanted to get your guys
take because you are more geared toward the mozilla security side.

I want to create an extension for firefox that is uses the
nsNSSCertificateDB and nsPKCS12Blob source files from firefox.

I'm working in a windows environment - visual studio 2008.

Here is what I've done:

1)Downloaded firefox 3.0.3 source and gecko sdk 1.9
2)Removed unneeded functions from nsNSSCertificateDB.cpp and
nsPKCS12Blob.cpp (as well as their header files) for my extension.
2)The nsNSSCertificateDB and nsPKCS12Blob use internal linkage, so
I've gone through those files and all the included headers (which was
a great many) converting their includes and strings to use
nsStringAPI.h

Both .cpp files compile, no errors or warnings, everything seems fine.
But, it will not link. I continually get "unresolved external symbol"
linker errors similar to this one:

Error   23      error LNK2019: unresolved external symbol "unsigned int
__cdecl getNSSDialogs(void * *,struct nsID const &,char const *)" (?
getNSSDialogs@@YAIPAPAXABUnsID@@[EMAIL PROTECTED]) referenced in function
"private: unsigned int __thiscall
nsPKCS12Blob::newPKCS12FilePassword(struct SECItemStr *)" (?
[EMAIL PROTECTED]@@AAEIPAUSECItemStr@@@Z)
nsPKCS12Blob.obj        cert_manager_3

I'm linking against xpcom.lib, xpcomglue_s.lib, and nss3.lib. I've
tried using every lib file that comes with xulrunner.

What am I doing wrong or missing?
_______________________________________________
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto

Reply via email to