Add FIPS support to the WIN32 build system.
[openssl.git] / crypto / cryptlib.c
index d52caa4..8bc5189 100644 (file)
@@ -208,7 +208,9 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason,
        case DLL_THREAD_ATTACH:
                break;
        case DLL_THREAD_DETACH:
+#ifndef OPENSSL_FIPS
                ERR_remove_state(0);
+#endif
                break;
        case DLL_PROCESS_DETACH:
                break;