Nelson, thanks! Amir, check the middle block, the old
Netscape code has CA logos *and* subject logos, so it
seems we are on the right track.
iang
Nelson B wrote:
Look at these URLs to see (some of) the dead code.
http://lxr.mozilla.org/security/ident?i=CERT_HTMLCertInfo
http://lxr.mozilla.org/security/ident?i=CERT_GetCertCommentString
Ian, if you look at those functions (even if you're not a programmer)
I think you'll find them revealing.
697 /*
698 ** Pretty print a certificate in HTML
699 ** "cert" is the certificate to print
700 ** "showImages" controls whether or not to use about:security URLs
701 ** for subject and issuer images. This should only be true
702 ** in the browser.
703 */
704 extern char *CERT_HTMLCertInfo(CERTCertificate *cert, PRBool showImages,
705 PRBool showIssuer);
445 if ( rv || !showImages ) {
446 htmlcertstrings[1] = "";
447 htmlcertstrings[2] = "";
448 htmlcertstrings[3] = "";
449 } else {
450 htmlcertstrings[1] = "<img src=\"about:security?subject-logo=";
451 htmlcertstrings[2] = nickname;
452 htmlcertstrings[3] = "\">";
453 }
479 if ( rv || !showImages ) {
480 htmlcertstrings[7] = "";
481 htmlcertstrings[8] = "";
482 htmlcertstrings[9] = "";
483 } else {
484 htmlcertstrings[7] = "<img src=\"about:security?issuer-logo=";
485 htmlcertstrings[8] = nickname;
486 htmlcertstrings[9] = "\">";
487 }
WOW! That's cool! I tried the about: in FireFox and got nothing...
better than crashing I suppose. A bit further down it goes into
a lot of Fortezza code and spook talk ... maybe that's the reason.
Nothing like a good conspiracy to start the weekend off.
Just kidding.
Thanks,
iang
--
News and views on what matters in finance+crypto:
http://financialcryptography.com/
_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto