2009/11/20 Kai Chan <nahc...@gmail.com>: > I noticed in a lot of the certificate functions > (http://www.mozilla.org/projects/security/pki/nss/ref/ssl/sslcrt.html#1050532), > there is an argument for CERTCertDBHandle. Does that mean I can't use these > certificate functions unless I use the cert8.db? If I still can, then do I > pass that as NULL?
You should always pass the return value of CERT_GetDefaultCertDB() as the CERTCertDBHandle * argument to those certificate functions. Once you initialize NSS (with or without databases), CERT_GetDefaultCertDB() will return a suitable value. Wan-Teh -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto