make reinitialisation work for CMAC
[oweals/openssl.git] / crypto / o_fips.c
index 9474a0d9afa4199f113935f91865167c48c20dfc..6a823957502e771b769d2cc5cd2560fa8d56d189 100644 (file)
@@ -75,7 +75,10 @@ int FIPS_mode_set(int r)
        {
        OPENSSL_init();
 #ifdef OPENSSL_FIPS
-       if (!FIPS_module_mode_set(r))
+#ifndef FIPS_AUTH_USER_PASS
+#define FIPS_AUTH_USER_PASS    "Default FIPS Crypto User Password"
+#endif
+       if (!FIPS_module_mode_set(r, FIPS_AUTH_USER_PASS))
                return 0;
        if (r)
                RAND_set_rand_method(FIPS_rand_get_method());