summaryrefslogtreecommitdiff
path: root/src/strongname
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-03-13 12:09:22 -0700
committerJan Kotas <jkotas@microsoft.com>2016-03-13 12:09:22 -0700
commite73cc0e8b8d04eaa6f49fdd97fdb89f079fb0d07 (patch)
treedfe508e3ba64482af97249214063c5e73d5c478e /src/strongname
parent7f9474cf017a31ed09a0af00ff0988295e46a89b (diff)
downloadcoreclr-e73cc0e8b8d04eaa6f49fdd97fdb89f079fb0d07.tar.gz
coreclr-e73cc0e8b8d04eaa6f49fdd97fdb89f079fb0d07.tar.bz2
coreclr-e73cc0e8b8d04eaa6f49fdd97fdb89f079fb0d07.zip
Remove remaining strongname validation on Windows
CodeCLR always skips strongname validation. Some code for strong name validation was still compiled for Windows, but not for Unix. This change removes the differences between Windows and Unix by never compiling the strong name validation code in.
Diffstat (limited to 'src/strongname')
-rw-r--r--src/strongname/api/strongname.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/strongname/api/strongname.cpp b/src/strongname/api/strongname.cpp
index e26199d409..1a8ef65c04 100644
--- a/src/strongname/api/strongname.cpp
+++ b/src/strongname/api/strongname.cpp
@@ -113,9 +113,9 @@ enum StrongNameCachedCsp {
// allocated lazily as needed.
struct SN_THREAD_CTX {
DWORD m_dwLastError;
-#if !defined(FEATURE_CORECLR) || (defined(CROSSGEN_COMPILE) && !defined(PLATFORM_UNIX))
+#if !defined(FEATURE_CORECLR)
HCRYPTPROV m_hProv[CachedCspCount];
-#endif // !FEATURE_CORECLR || (CROSSGEN_COMPILE && !PLATFORM_UNIX)
+#endif // !FEATURE_CORECLR
};
#endif // !DACCESS_COMPILE
@@ -199,7 +199,7 @@ struct SN_THREAD_CTX {
#endif // FEATURE_WINDOWSPHONE
#endif // FEATURE_CORECLR
-#if !defined(FEATURE_CORECLR) || (defined(CROSSGEN_COMPILE) && !defined(PLATFORM_UNIX))
+#if !defined(FEATURE_CORECLR)
#ifdef FEATURE_STRONGNAME_MIGRATION
#include "caparser.h"
@@ -4667,11 +4667,11 @@ ErrExit:
#endif // #ifndef DACCESS_COMPILE
-#else // !defined(FEATURE_CORECLR) || (defined(CROSSGEN_COMPILE) && !defined(PLATFORM_UNIX))
+#else // !defined(FEATURE_CORECLR)
#define InitStrongName() S_OK
-#endif // !defined(FEATURE_CORECLR) || (defined(CROSSGEN_COMPILE) && !defined(PLATFORM_UNIX))
+#endif // !defined(FEATURE_CORECLR)
// Free buffer allocated by routines below.
@@ -4697,12 +4697,12 @@ SN_THREAD_CTX *GetThreadContext()
if (pThreadCtx == NULL)
return NULL;
pThreadCtx->m_dwLastError = S_OK;
-#if !defined(FEATURE_CORECLR) || (defined(CROSSGEN_COMPILE) && !defined(PLATFORM_UNIX))
+#if !defined(FEATURE_CORECLR)
for (ULONG i = 0; i < CachedCspCount; i++)
{
pThreadCtx->m_hProv[i] = NULL;
}
-#endif // !FEATURE_CORECLR || (CROSSGEN_COMPILE && !PLATFORM_UNIX)
+#endif // !FEATURE_CORECLR
EX_TRY {
ClrFlsSetValue(TlsIdx_StrongName, pThreadCtx);