Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 2 | * |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | #include "mozilla/ModuleUtils.h" |
michael@0 | 8 | |
michael@0 | 9 | #include "nsNSSDialogs.h" |
michael@0 | 10 | #include "nsPKIParamBlock.h" |
michael@0 | 11 | #include "nsASN1Tree.h" |
michael@0 | 12 | #include "nsFormSigningDialog.h" |
michael@0 | 13 | #include "nsISSLCertErrorDialog.h" |
michael@0 | 14 | |
michael@0 | 15 | NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsNSSDialogs, Init) |
michael@0 | 16 | NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPKIParamBlock, Init) |
michael@0 | 17 | NS_GENERIC_FACTORY_CONSTRUCTOR(nsNSSASN1Tree) |
michael@0 | 18 | NS_GENERIC_FACTORY_CONSTRUCTOR(nsFormSigningDialog) |
michael@0 | 19 | |
michael@0 | 20 | NS_DEFINE_NAMED_CID(NS_NSSDIALOGS_CID); |
michael@0 | 21 | NS_DEFINE_NAMED_CID(NS_NSSASN1OUTINER_CID); |
michael@0 | 22 | NS_DEFINE_NAMED_CID(NS_PKIPARAMBLOCK_CID); |
michael@0 | 23 | NS_DEFINE_NAMED_CID(NS_FORMSIGNINGDIALOG_CID); |
michael@0 | 24 | |
michael@0 | 25 | |
michael@0 | 26 | static const mozilla::Module::CIDEntry kPKICIDs[] = { |
michael@0 | 27 | { &kNS_NSSDIALOGS_CID, false, nullptr, nsNSSDialogsConstructor }, |
michael@0 | 28 | { &kNS_NSSASN1OUTINER_CID, false, nullptr, nsNSSASN1TreeConstructor }, |
michael@0 | 29 | { &kNS_PKIPARAMBLOCK_CID, false, nullptr, nsPKIParamBlockConstructor }, |
michael@0 | 30 | { &kNS_FORMSIGNINGDIALOG_CID, false, nullptr, nsFormSigningDialogConstructor }, |
michael@0 | 31 | { nullptr } |
michael@0 | 32 | }; |
michael@0 | 33 | |
michael@0 | 34 | static const mozilla::Module::ContractIDEntry kPKIContracts[] = { |
michael@0 | 35 | { NS_SSLCERTERRORDIALOG_CONTRACTID, &kNS_NSSDIALOGS_CID }, |
michael@0 | 36 | { NS_TOKENPASSWORDSDIALOG_CONTRACTID, &kNS_NSSDIALOGS_CID }, |
michael@0 | 37 | { NS_CERTIFICATEDIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, |
michael@0 | 38 | { NS_CLIENTAUTHDIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, |
michael@0 | 39 | { NS_CERTPICKDIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, |
michael@0 | 40 | { NS_TOKENDIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, |
michael@0 | 41 | { NS_DOMCRYPTODIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, |
michael@0 | 42 | { NS_GENERATINGKEYPAIRINFODIALOGS_CONTRACTID, &kNS_NSSDIALOGS_CID }, |
michael@0 | 43 | { NS_ASN1TREE_CONTRACTID, &kNS_NSSASN1OUTINER_CID }, |
michael@0 | 44 | { NS_PKIPARAMBLOCK_CONTRACTID, &kNS_PKIPARAMBLOCK_CID }, |
michael@0 | 45 | { NS_FORMSIGNINGDIALOG_CONTRACTID, &kNS_FORMSIGNINGDIALOG_CID }, |
michael@0 | 46 | { nullptr } |
michael@0 | 47 | }; |
michael@0 | 48 | |
michael@0 | 49 | static const mozilla::Module kPKIModule = { |
michael@0 | 50 | mozilla::Module::kVersion, |
michael@0 | 51 | kPKICIDs, |
michael@0 | 52 | kPKIContracts |
michael@0 | 53 | }; |
michael@0 | 54 | |
michael@0 | 55 | NSMODULE_DEFN(PKI) = &kPKIModule; |