Make sure we only run the self tests once
[openssl.git] / include / internal / thread_once.h
index 0b38ade6c662ceb9d4f8cc058f0bbb18c2bde60d..177974f0209f1e6f27f8f6403b07741dba3a86d5 100644 (file)
@@ -15,7 +15,7 @@
  * OPENSSL_CTX object. In this way data will get cleaned up correctly when the
  * module gets unloaded.
  */
-#ifndef FIPS_MODE
+#if !defined(FIPS_MODE) || defined(ALLOW_RUN_ONCE_IN_FIPS)
 /*
  * DEFINE_RUN_ONCE: Define an initialiser function that should be run exactly
  * once. It takes no arguments and returns and int result (1 for success or