Petar Popara wrote:
While linking I got "unresolved external simbol" for
CERT_DecodeDERCertificate(). I have found this bug report:
http://bugzilla.mozilla.org/show_bug.cgi?id=262274
http://bugzilla.redhat.com/bugzilla/long_list.cgi?buglist=133881
which says that CERT_NewTempCertificate() should be used instead. The
problem is that I got "unresolved external simbol" even for
CERT_NewTempCertificate(). :(
Both funcs are exported in nss3.dll as __CERT_NewTempCertificate() and
__CERT_NewTempCertificate().
What should I do?
NSS has to export some private functions from the nss3
shared library/DLL for use by the other NSS shared libraries
or PSM. These exported private functions have double underscore
(__) in front of their names.
__CERT_NewTempCertificate
__PK11_CreateContextByRawKey
__PK11_GetKeyData
__nss_InitLock
__CERT_ClosePermCertDB
__CERT_DecodeDERCertificate
__CERT_TraversePermCertsForNickname
__CERT_TraversePermCertsForSubject
__PBE_CreateContext
__PBE_DestroyContext
__PBE_GenerateBits
__CERT_AddTempCertToPerm
You should not use these private functions.
Use the CERT_ImportCerts function (declared in "cert.h") to
import a DER-encoded certificate into NSS.
Don't use CERT_DecodeDERCertificate (or __CERT_DecodeDERCertificate).
The CERTCertificate structure it returns is incomplete and
may not be usable by some NSS functions.
CERT_NewTempCertificate (or __CERT_NewTempCertificate) is
probably OK, but it is a private function right now. We
may make it a public function in a future NSS release.
Wan-Teh
_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto