Skip to content

Commit

Permalink
fips_check_dsa_prng() should only be built when OPENSSL_FIPS is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
levitte committed Apr 24, 2011
1 parent 171edf7 commit ce67647
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crypto/dsa/dsa_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ static int dsa2_valid_parameters(size_t L, size_t N)
return 0;
}

#ifdef OPENSSL_FIPS
int fips_check_dsa_prng(DSA *dsa, size_t L, size_t N)
{
int strength;
Expand Down Expand Up @@ -442,6 +443,7 @@ int fips_check_dsa_prng(DSA *dsa, size_t L, size_t N)
return 0;

}
#endif /* OPENSSL_FIPS */

/* This is a parameter generation algorithm for the DSA2 algorithm as
* described in FIPS 186-3.
Expand Down

0 comments on commit ce67647

Please sign in to comment.