From 6c2b7194aaaf4b9f6f7d71f79eb07299770266b9 Mon Sep 17 00:00:00 2001 From: "thayes%netscape.com" Date: Tue, 22 May 2001 14:07:35 +0000 Subject: [PATCH] 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 --- .../pki/resources/content/PageInfoOverlay.xul | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/mozilla/security/manager/pki/resources/content/PageInfoOverlay.xul b/mozilla/security/manager/pki/resources/content/PageInfoOverlay.xul index e4ce85cef03..b213d713783 100644 --- a/mozilla/security/manager/pki/resources/content/PageInfoOverlay.xul +++ b/mozilla/security/manager/pki/resources/content/PageInfoOverlay.xul @@ -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, };