Add FIPS support to the WIN32 build system.

This commit is contained in:
Dr. Stephen Henson
2011-02-03 23:12:04 +00:00
parent 14ae26f2e4
commit 06b433acad
7 changed files with 396 additions and 25 deletions

View 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;

View File

@@ -94,7 +94,7 @@ extern int rand_predictable;
int RAND_set_rand_method(const RAND_METHOD *meth);
const RAND_METHOD *RAND_get_rand_method(void);
#ifndef OPENSSL_NO_ENGINE
#if !defined(OPENSSL_NO_ENGINE) && !defined(OPENSSL_FIPS)
int RAND_set_rand_engine(ENGINE *engine);
#endif
RAND_METHOD *RAND_SSLeay(void);

View File

@@ -109,6 +109,8 @@
*
*/
#define OPENSSL_FIPSAPI
#include "cryptlib.h"
#include <openssl/rand.h>
#include "rand_lcl.h"