Diff of /openssl/secure.cpp [d12ca8] .. [0e678a] Maximize Restore

  Switch to side-by-side view

--- a/openssl/secure.cpp
+++ b/openssl/secure.cpp
@@ -43,9 +43,14 @@
     }
 }
 
-bool secure::fipsinit(const char *progname)
+bool secure::fips(const char *progname)
 {
 #ifdef  HAVE_OPENSSL_FIPS_H
+
+    // must always be first init function called...
+    if(private_locks)
+        return false;
+
     if(!FIPS_mode_set(1))
         return false;