2001-01-10 01:32:29 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
|
|
*
|
|
|
|
* 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) 1998 Netscape Communications Corporation. All
|
|
|
|
* Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s):
|
|
|
|
* Hubbie Shaw
|
|
|
|
* Doug Turner <dougt@netscape.com>
|
|
|
|
* Brian Ryner <bryner@netscape.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "nsIModule.h"
|
|
|
|
#include "nsIGenericFactory.h"
|
|
|
|
|
|
|
|
#include "nsNSSComponent.h"
|
|
|
|
#include "nsSecureBrowserUIImpl.h"
|
|
|
|
#include "nsSSLSocketProvider.h"
|
|
|
|
#include "nsTLSSocketProvider.h"
|
2001-05-03 01:00:56 +00:00
|
|
|
#include "nsKeygenHandler.h"
|
2001-01-10 01:32:29 +00:00
|
|
|
|
|
|
|
#include "nsCURILoader.h"
|
|
|
|
|
2001-01-31 18:03:49 +00:00
|
|
|
#include "nsSDR.h"
|
|
|
|
|
2001-02-06 23:01:33 +00:00
|
|
|
#include "nsPK11TokenDB.h"
|
2001-05-15 20:40:28 +00:00
|
|
|
#include "nsPKCS11Slot.h"
|
2001-02-26 21:50:54 +00:00
|
|
|
#include "nsNSSCertificate.h"
|
2001-05-01 23:23:23 +00:00
|
|
|
#include "nsCertOutliner.h"
|
2001-05-15 23:15:12 +00:00
|
|
|
#include "nsCrypto.h"
|
|
|
|
//For the NS_CRYPTO_CONTRACTID define
|
|
|
|
#include "nsDOMCID.h"
|
|
|
|
|
2001-01-31 18:03:49 +00:00
|
|
|
|
2001-01-19 01:12:10 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsNSSComponent, Init)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSecureBrowserUIImpl)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSSLSocketProvider)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsTLSSocketProvider)
|
2001-01-31 18:03:49 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsSecretDecoderRing)
|
2001-02-06 23:01:33 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsPK11TokenDB)
|
2001-05-15 20:40:28 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsPKCS11ModuleDB)
|
2001-02-26 21:50:54 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(CertContentListener, init)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsNSSCertificateDB)
|
2001-05-01 23:23:23 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCertOutliner)
|
2001-05-15 23:15:12 +00:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCrypto)
|
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsPkcs11)
|
|
|
|
|
2001-01-10 01:32:29 +00:00
|
|
|
|
|
|
|
static nsModuleComponentInfo components[] =
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PSM_COMPONENT_CLASSNAME,
|
|
|
|
NS_NSSCOMPONENT_CID,
|
|
|
|
PSM_COMPONENT_CONTRACTID,
|
2001-01-19 01:12:10 +00:00
|
|
|
nsNSSComponentConstructor
|
2001-01-10 01:32:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"NSS Content Handler - application/x-x509-ca-cert",
|
|
|
|
NS_NSSCOMPONENT_CID,
|
|
|
|
NS_CONTENT_HANDLER_CONTRACTID_PREFIX"application/x-x509-ca-cert",
|
2001-01-19 01:12:10 +00:00
|
|
|
nsNSSComponentConstructor
|
2001-01-10 01:32:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"NSS Content Handler - application/x-x509-server-cert",
|
|
|
|
NS_NSSCOMPONENT_CID,
|
|
|
|
NS_CONTENT_HANDLER_CONTRACTID_PREFIX"application/x-x509-server-cert",
|
2001-01-19 01:12:10 +00:00
|
|
|
nsNSSComponentConstructor
|
2001-01-10 01:32:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"NSS Content Handler - application/x-x509-user-cert",
|
|
|
|
NS_NSSCOMPONENT_CID,
|
|
|
|
NS_CONTENT_HANDLER_CONTRACTID_PREFIX"application/x-x509-user-cert",
|
2001-01-19 01:12:10 +00:00
|
|
|
nsNSSComponentConstructor
|
2001-01-10 01:32:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"NSS Content Handler - application/x-x509-email-cert",
|
|
|
|
NS_NSSCOMPONENT_CID,
|
|
|
|
NS_CONTENT_HANDLER_CONTRACTID_PREFIX"application/x-x509-email-cert",
|
2001-01-19 01:12:10 +00:00
|
|
|
nsNSSComponentConstructor
|
2001-01-10 01:32:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
NS_SECURE_BROWSER_UI_CLASSNAME,
|
|
|
|
NS_SECURE_BROWSER_UI_CID,
|
|
|
|
NS_SECURE_BROWSER_UI_CONTRACTID,
|
2001-01-19 01:12:10 +00:00
|
|
|
nsSecureBrowserUIImplConstructor
|
2001-01-10 01:32:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
NS_ISSLSOCKETPROVIDER_CLASSNAME,
|
|
|
|
NS_SSLSOCKETPROVIDER_CID,
|
|
|
|
NS_ISSLSOCKETPROVIDER_CONTRACTID,
|
2001-01-19 01:12:10 +00:00
|
|
|
nsSSLSocketProviderConstructor
|
2001-01-10 01:32:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
2001-04-16 21:01:29 +00:00
|
|
|
NS_TLSSTEPUPSOCKETPROVIDER_CLASSNAME,
|
|
|
|
NS_TLSSTEPUPSOCKETPROVIDER_CID,
|
|
|
|
NS_TLSSTEPUPSOCKETPROVIDER_CONTRACTID,
|
2001-01-19 01:12:10 +00:00
|
|
|
nsTLSSocketProviderConstructor
|
2001-01-10 01:32:29 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
NS_ISSLFHSOCKETPROVIDER_CLASSNAME,
|
|
|
|
NS_SSLSOCKETPROVIDER_CID,
|
|
|
|
NS_ISSLFHSOCKETPROVIDER_CONTRACTID,
|
2001-01-19 01:12:10 +00:00
|
|
|
nsSSLSocketProviderConstructor
|
2001-01-10 01:32:29 +00:00
|
|
|
},
|
2001-01-25 01:14:23 +00:00
|
|
|
|
2001-01-31 18:03:49 +00:00
|
|
|
{
|
|
|
|
NS_SDR_CLASSNAME,
|
|
|
|
NS_SDR_CID,
|
|
|
|
NS_SDR_CONTRACTID,
|
|
|
|
nsSecretDecoderRingConstructor
|
|
|
|
},
|
|
|
|
|
2001-01-25 01:14:23 +00:00
|
|
|
{
|
|
|
|
"Entropy Collector",
|
2001-02-06 23:10:16 +00:00
|
|
|
NS_NSSCOMPONENT_CID,
|
2001-01-25 01:14:23 +00:00
|
|
|
NS_ENTROPYCOLLECTOR_CONTRACTID,
|
|
|
|
nsNSSComponentConstructor
|
2001-02-06 23:01:33 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"PK11 Token Database",
|
|
|
|
NS_PK11TOKENDB_CID,
|
|
|
|
NS_PK11TOKENDB_CONTRACTID,
|
|
|
|
nsPK11TokenDBConstructor
|
|
|
|
},
|
2001-02-26 21:50:54 +00:00
|
|
|
|
2001-05-15 20:40:28 +00:00
|
|
|
{
|
|
|
|
"PKCS11 Module Database",
|
|
|
|
NS_PKCS11MODULEDB_CID,
|
|
|
|
NS_PKCS11MODULEDB_CONTRACTID,
|
|
|
|
nsPKCS11ModuleDBConstructor
|
|
|
|
},
|
|
|
|
|
2001-02-26 21:50:54 +00:00
|
|
|
{
|
|
|
|
"Generic Certificate Content Handler",
|
|
|
|
NS_CERTCONTENTLISTEN_CID,
|
|
|
|
NS_CERTCONTENTLISTEN_CONTRACTID,
|
|
|
|
CertContentListenerConstructor
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"X509 Certificate Database",
|
|
|
|
NS_X509CERTDB_CID,
|
|
|
|
NS_X509CERTDB_CONTRACTID,
|
|
|
|
nsNSSCertificateDBConstructor
|
2001-05-01 23:23:23 +00:00
|
|
|
},
|
|
|
|
|
2001-05-03 01:00:56 +00:00
|
|
|
{
|
|
|
|
"Form Processor",
|
|
|
|
NS_FORMPROCESSOR_CID,
|
|
|
|
NS_FORMPROCESSOR_CONTRACTID,
|
|
|
|
nsKeygenFormProcessor::Create
|
|
|
|
},
|
|
|
|
|
2001-05-01 23:23:23 +00:00
|
|
|
{
|
|
|
|
"Certificate Outliner",
|
|
|
|
NS_CERTOUTLINER_CID,
|
|
|
|
NS_CERTOUTLINER_CONTRACTID,
|
|
|
|
nsCertOutlinerConstructor
|
2001-05-15 23:15:12 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
NS_PKCS11_CLASSNAME,
|
|
|
|
NS_PKCS11_CID,
|
|
|
|
NS_PKCS11_CONTRACTID,
|
|
|
|
nsPkcs11Constructor
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
NS_CRYPTO_CLASSNAME,
|
|
|
|
NS_CRYPTO_CID,
|
|
|
|
NS_CRYPTO_CONTRACTID,
|
|
|
|
nsCryptoConstructor
|
2001-02-26 21:50:54 +00:00
|
|
|
}
|
|
|
|
|
2001-05-15 23:15:12 +00:00
|
|
|
|
2001-01-10 01:32:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
NS_IMPL_NSGETMODULE("NSS", components);
|