Ludovic Hirlimann wrote:
Often we get issue that involve certificates, or crypto errors. Are
there any ways to log what PSM or NSS do the way we can log other
protocols - I haven't found anything in the documentation
I'm a bit surprised. If you know how to log other protocol, you know the
right keyword (NSPR_LOG_MODULES), and you should have found pages likes
this one : "Using the PKCS #11 Module Logger"
http://www.mozilla.org/projects/security/pki/nss/tech-notes/tn2.html
About PSM, there's clearly much less documentation. But the same keyword
should have lead you to nsSecureBrowserUI.
I'd say the best to get *garanteed* relevant info is to free-text search
PR_NewLogModule on the security starting point of mxr.
http://mxr.mozilla.org/security/search?string=PR_NewLogModule
The following hits are (more or less) relevant :
/security/nss/lib/util/nssilock.c
* line 182 -- nssILog = PR_NewLogModule("nssilock");
/security/nss/lib/libpkix/pkix_pl_nss/system/pkix_pl_lifecycle.c
* line 172 -- pkixLog = PR_NewLogModule("pkix");
/security/nss/lib/pk11wrap/debug_module.c
* line 2568 -- modlog = PR_NewLogModule("nss_mod_log");
/security/nss/lib/pki/tdcache.c
* line 163 -- s_log = PR_NewLogModule("nss_cache");
/security/manager/ssl/src/nsNSSComponent.cpp
* line 284 -- gPIPNSSLog = PR_NewLogModule("pipnss");
/security/manager/ssl/src/nsNTLMAuthModule.cpp
* line 56 -- PRLogModuleInfo *gNTLMLog = PR_NewLogModule("NTLM");
/security/manager/boot/src/nsSecureBrowserUIImpl.cpp
* line 176 -- gSecureDocLog = PR_NewLogModule("nsSecureBrowserUI");
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto