dh_exponent_ansi_x9_42 is now a libstrongswan setting

This commit is contained in:
Andreas Steffen
2009-05-26 18:32:52 +02:00
parent 517895bd05
commit ebb97511e6
2 changed files with 2 additions and 2 deletions
@@ -560,7 +560,7 @@ gmp_diffie_hellman_t *gmp_diffie_hellman_create(diffie_hellman_group_t group)
}
ansi_x9_42 = lib->settings->get_int(lib->settings,
"charon.dh_exponent_ansi_x9_42", TRUE);
"libstrongswan.dh_exponent_ansi_x9_42", TRUE);
exponent_len = (ansi_x9_42) ? this->p_len : this->opt_exponent_len;
rng->allocate_bytes(rng, exponent_len, &random);
rng->destroy(rng);
@@ -169,7 +169,7 @@ static status_t set_modulus(private_openssl_diffie_hellman_t *this)
bool ansi_x9_42;
ansi_x9_42 = lib->settings->get_bool(lib->settings,
"charon.dh_exponent_ansi_x9_42", TRUE);
"libstrongswan.dh_exponent_ansi_x9_42", TRUE);
for (i = 0; i < (sizeof(modulus_entries) / sizeof(modulus_entry_t)); i++)
{