summaryrefslogtreecommitdiff
path: root/dll.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-10-14 09:43:14 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-10-14 09:43:14 +0000
commita5a576cb8226f822a06f3e46c2dc1dd0ac7a16fd (patch)
tree1d8676eb5a14fd37c16587e2b17c12e8c79e0a26 /dll.cpp
parentb33ba47ba39470ea36c27b9378e8c82ac9be428f (diff)
downloadcryptopp-a5a576cb8226f822a06f3e46c2dc1dd0ac7a16fd.tar.gz
reduce source file dependencies
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@137 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'dll.cpp')
-rw-r--r--dll.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/dll.cpp b/dll.cpp
index 9efaec7..24edf14 100644
--- a/dll.cpp
+++ b/dll.cpp
@@ -23,22 +23,6 @@ NAMESPACE_BEGIN(CryptoPP)
template<> const byte PKCS_DigestDecoration<SHA>::decoration[] = {0x30,0x21,0x30,0x09,0x06,0x05,0x2B,0x0E,0x03,0x02,0x1A,0x05,0x00,0x04,0x14};
template<> const unsigned int PKCS_DigestDecoration<SHA>::length = sizeof(PKCS_DigestDecoration<SHA>::decoration);
-static const byte s_moduleMac[CryptoPP::HMAC<CryptoPP::SHA1>::DIGESTSIZE] = "reserved for mac";
-#ifdef CRYPTOPP_WIN32_AVAILABLE
-static HMODULE s_hModule = NULL;
-#endif
-
-void DoDllPowerUpSelfTest()
-{
-#ifdef CRYPTOPP_WIN32_AVAILABLE
- char moduleFileName[MAX_PATH];
- GetModuleFileNameA(s_hModule, moduleFileName, sizeof(moduleFileName));
- CryptoPP::DoPowerUpSelfTest(moduleFileName, s_moduleMac);
-#else
- throw NotImplemented("DoDllPowerUpSelfTest() only available on Windows");
-#endif
-}
-
NAMESPACE_END
#endif
@@ -127,16 +111,4 @@ void CRYPTOPP_CDECL operator delete (void * p)
s_pDelete(p);
}
-BOOL APIENTRY DllMain(HANDLE hModule,
- DWORD ul_reason_for_call,
- LPVOID lpReserved)
-{
- if (ul_reason_for_call == DLL_PROCESS_ATTACH)
- {
- s_hModule = (HMODULE)hModule;
- DoDllPowerUpSelfTest();
- }
- return TRUE;
-}
-
#endif // #ifdef CRYPTOPP_EXPORTS