From dd4098926739738d3a16616d2fedacd4484015b5 Mon Sep 17 00:00:00 2001 From: "ddrinan%netscape.com" Date: Tue, 15 May 2001 17:35:35 +0000 Subject: [PATCH] Enable support for OCSP. Bug#80178, r=mcgreer@netscape.com, sr=blizzard@mozilla.org --- .../pki/resources/content/PrefOverlay.xul | 8 + .../pki/resources/content/pref-validation.js | 86 ++++++++ .../pki/resources/content/pref-validation.xul | 91 ++++++++ security/manager/pki/resources/jar.mn | 3 + .../resources/locale/en-US/PrefOverlay.dtd | 6 +- .../locale/en-US/pref-validation.dtd | 34 +++ security/manager/ssl/public/nsIX509CertDB.idl | 13 ++ security/manager/ssl/src/nsNSSCertificate.cpp | 207 +++++++++++++++++- security/manager/ssl/src/nsNSSComponent.cpp | 40 ++++ 9 files changed, 485 insertions(+), 3 deletions(-) create mode 100644 security/manager/pki/resources/content/pref-validation.js create mode 100644 security/manager/pki/resources/content/pref-validation.xul create mode 100644 security/manager/pki/resources/locale/en-US/pref-validation.dtd diff --git a/security/manager/pki/resources/content/PrefOverlay.xul b/security/manager/pki/resources/content/PrefOverlay.xul index b1e1ff46a93e..ccbc90ea894d 100644 --- a/security/manager/pki/resources/content/PrefOverlay.xul +++ b/security/manager/pki/resources/content/PrefOverlay.xul @@ -43,6 +43,14 @@ + + + + + + + diff --git a/security/manager/pki/resources/content/pref-validation.js b/security/manager/pki/resources/content/pref-validation.js new file mode 100644 index 000000000000..833042c97876 --- /dev/null +++ b/security/manager/pki/resources/content/pref-validation.js @@ -0,0 +1,86 @@ +/* + * The contents of this file are subject to the Mozilla Public + * License Version 1.1 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.mozilla.org/MPL/ + * + * Software distributed under the License is distributed on an "AS + * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + * implied. See the License for the specific language governing + * rights and limitations under the License. + * + * The Original Code is mozilla.org code. + * + * The Initial Developer of the Original Code is Netscape + * Communications Corporation. Portions created by Netscape are + * Copyright (C) 2001 Netscape Communications Corporation. All + * Rights Reserved. + * + * Contributor(s): + * David Drinan + */ + +const nsIX509CertDB = Components.interfaces.nsIX509CertDB; +const nsX509CertDB = "@mozilla.org/security/x509certdb;1"; +const nsIOCSPResponder = Components.interfaces.nsIOCSPResponder; +const nsISupportsArray = Components.interfaces.nsISupportsArray; + +var certdb; +var ocspResponders; + +function onLoad() +{ + var ocspEntry; + var i; + + certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB); + ocspResponders = certdb.getOCSPResponders(); + + var signersMenu = document.getElementById("signingCA"); + var signersURL = document.getElementById("serviceURL"); + for (i=0; i + + + + + + + + %brandDTD; + %prefValidationDTD; +]> + + + + + + +