bug 337733: implement an rc4 xpcom interface and key object

patch: nsIKeyObject and nsIKeyObjectFactory and nsIStreamCipher
r=darin,sr=rrelyea


git-svn-id: svn://10.0.0.236/trunk@207209 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
tony%ponderer.org
2006-08-12 06:39:47 +00:00
parent 95b0f24a09
commit 3208957317
9 changed files with 797 additions and 0 deletions

View File

@@ -69,6 +69,8 @@
#include "nsCRLManager.h"
#include "nsCipherInfo.h"
#include "nsNTLMAuthModule.h"
#include "nsStreamCipher.h"
#include "nsKeyModule.h"
// We must ensure that the nsNSSComponent has been loaded before
// creating any other components.
@@ -184,6 +186,9 @@ NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(PR_FALSE, nsCRLManager)
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(PR_FALSE, nsCipherInfoService)
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR_INIT(PR_FALSE, nsNTLMAuthModule, InitTest)
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(PR_FALSE, nsCryptoHash)
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(PR_FALSE, nsStreamCipher)
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(PR_FALSE, nsKeyObject)
NS_NSS_GENERIC_FACTORY_CONSTRUCTOR(PR_FALSE, nsKeyObjectFactory)
static NS_METHOD RegisterPSMContentListeners(
nsIComponentManager *aCompMgr,
@@ -404,6 +409,27 @@ static const nsModuleComponentInfo components[] =
NS_NTLMAUTHMODULE_CID,
NS_NTLMAUTHMODULE_CONTRACTID,
nsNTLMAuthModuleConstructor
},
{
NS_STREAMCIPHER_CLASSNAME,
NS_STREAMCIPHER_CID,
NS_STREAMCIPHER_CONTRACTID,
nsStreamCipherConstructor
},
{
NS_KEYMODULEOBJECT_CLASSNAME,
NS_KEYMODULEOBJECT_CID,
NS_KEYMODULEOBJECT_CONTRACTID,
nsKeyObjectConstructor
},
{
NS_KEYMODULEOBJECTFACTORY_CLASSNAME,
NS_KEYMODULEOBJECTFACTORY_CID,
NS_KEYMODULEOBJECTFACTORY_CONTRACTID,
nsKeyObjectFactoryConstructor
}
};