Remove 'done' variable since it stops error codes being reloaded.
[openssl.git] / crypto / err / err_all.c
index dc505d9d9d48f5261c9b70a915c3ca433db66008..f6b5e7238af19ce7a593b32623a3351248252dd3 100644 (file)
 #endif
 #include <openssl/ocsp.h>
 #include <openssl/err.h>
+#include <openssl/fips.h>
 
 void ERR_load_crypto_strings(void)
        {
-       static int done=0;
-
-       if (done) return;
-       done=1;
 #ifndef OPENSSL_NO_ERR
        ERR_load_ERR_strings(); /* include error strings for SYSerr */
        ERR_load_BN_strings();
@@ -129,5 +126,8 @@ void ERR_load_crypto_strings(void)
 #endif
        ERR_load_OCSP_strings();
        ERR_load_UI_strings();
+#endif
+#ifdef OPENSSL_FIPS
+       ERR_load_FIPS_strings();
 #endif
        }