Update from HEAD.
[oweals/openssl.git] / crypto / dsa / dsa_key.c
index 0423f2e00cd254c103293e7c67a57dbd6f2a80d0..5e3912423014caf37ed9912f1c55886920bd8ca5 100644 (file)
@@ -64,6 +64,8 @@
 #include <openssl/dsa.h>
 #include <openssl/rand.h>
 
+#ifndef OPENSSL_FIPS
+
 static int dsa_builtin_keygen(DSA *dsa);
 
 int DSA_generate_key(DSA *dsa)
@@ -107,7 +109,7 @@ static int dsa_builtin_keygen(DSA *dsa)
                        {
                        BN_init(&local_prk);
                        prk = &local_prk;
-                       BN_with_flags(prk, priv_key, BN_FLG_EXP_CONSTTIME);
+                       BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME);
                        }
                else
                        prk = priv_key;
@@ -126,3 +128,5 @@ err:
        return(ok);
        }
 #endif
+
+#endif