michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "mozilla/ModuleUtils.h" michael@0: michael@0: #include "nsNSSDialogs.h" michael@0: #include "nsPKIParamBlock.h" michael@0: #include "nsASN1Tree.h" michael@0: #include "nsFormSigningDialog.h" michael@0: #include "nsISSLCertErrorDialog.h" michael@0: michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsNSSDialogs, Init) michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPKIParamBlock, Init) michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsNSSASN1Tree) michael@0: NS_GENERIC_FACTORY_CONSTRUCTOR(nsFormSigningDialog) michael@0: michael@0: NS_DEFINE_NAMED_CID(NS_NSSDIALOGS_CID); michael@0: NS_DEFINE_NAMED_CID(NS_NSSASN1OUTINER_CID); michael@0: NS_DEFINE_NAMED_CID(NS_PKIPARAMBLOCK_CID); michael@0: NS_DEFINE_NAMED_CID(NS_FORMSIGNINGDIALOG_CID); michael@0: michael@0: michael@0: static const mozilla::Module::CIDEntry kPKICIDs[] = { michael@0: { &kNS_NSSDIALOGS_CID, false, nullptr, nsNSSDialogsConstructor }, michael@0: { &kNS_NSSASN1OUTINER_CID, false, nullptr, nsNSSASN1TreeConstructor }, michael@0: { &kNS_PKIPARAMBLOCK_CID, false, nullptr, nsPKIParamBlockConstructor }, michael@0: { &kNS_FORMSIGNINGDIALOG_CID, false, nullptr, nsFormSigningDialogConstructor }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module::ContractIDEntry kPKIContracts[] = { michael@0: { NS_SSLCERTERRORDIALOG_CONTRACTID, &kNS_NSSDIALOGS_CID }, michael@0: { NS_TOKENPASSWORDSDIALOG_CONTRACTID, &kNS_NSSDIALOGS_CID }, michael@0: { NS_CERTIFICATEDIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, michael@0: { NS_CLIENTAUTHDIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, michael@0: { NS_CERTPICKDIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, michael@0: { NS_TOKENDIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, michael@0: { NS_DOMCRYPTODIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, michael@0: { NS_GENERATINGKEYPAIRINFODIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, michael@0: { NS_ASN1TREE_CONTRACTID, &kNS_NSSASN1OUTINER_CID }, michael@0: { NS_PKIPARAMBLOCK_CONTRACTID, &kNS_PKIPARAMBLOCK_CID }, michael@0: { NS_FORMSIGNINGDIALOG_CONTRACTID, &kNS_FORMSIGNINGDIALOG_CID }, michael@0: { nullptr } michael@0: }; michael@0: michael@0: static const mozilla::Module kPKIModule = { michael@0: mozilla::Module::kVersion, michael@0: kPKICIDs, michael@0: kPKIContracts michael@0: }; michael@0: michael@0: NSMODULE_DEFN(PKI) = &kPKIModule;