Bug 78816 r=ddrinan/sr=blizzard Display issuer organization instead of full

DN if possible.


git-svn-id: svn://10.0.0.236/trunk@95676 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
thayes%netscape.com
2001-05-22 14:07:35 +00:00
parent 0602c9c2fc
commit 6c2b7194aa

View File

@@ -56,9 +56,14 @@
var status = sp.SSLStatus;
if (status) {
var cert = status.serverCert;
var issuerName;
issuerName = this.mapIssuerOrganization(cert.issuerOrganization);
if (!issuerName) issuerName = cert.issuerName;
return {
hostName : w.location.host,
cAName : cert.issuerName,
cAName : issuerName,
encryptionAlgorithm : status.cipherName,
encryptionStrength : status.secretKeyLength,
cert : cert,
@@ -79,6 +84,18 @@
return window.opener.gBrowser.boxObject.getPropertyAsSupports("secureBrowserUI");
},
// Interface for mapping a certificate issuer organization to
// the value to be displayed.
// Bug 82017 - this implementation should be moved to pipnss C++ code
mapIssuerOrganization: function(name) {
if (!name) return null;
if (name == "RSA Data Security, Inc.") return "Verisign, Inc.";
// No mapping required
return name;
},
_cert : null,
};