/* * 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): * Ian McGreer */ const nsIX509Cert = Components.interfaces.nsIX509Cert; const nsX509CertDB = "@mozilla.org/security/x509certdb;1"; const nsIX509CertDB = Components.interfaces.nsIX509CertDB; const nsIPKIParamBlock = Components.interfaces.nsIPKIParamBlock; const nsIDialogParamBlock = Components.interfaces.nsIDialogParamBlock; var certdb; var certs = []; var helpUrl; var gParams; function setWindowName() { gParams = window.arguments[0].QueryInterface(nsIDialogParamBlock); // Get the cert from the cert database certdb = Components.classes[nsX509CertDB].getService(nsIX509CertDB); var typeFlag = gParams.GetString(0); var numberOfCerts = gParams.GetInt(0); var dbkey; for(var x=0; x