Remove HASH_PREFERRED, usages are replaced with HASH_SHA1, which is required for IKEv2 anyway

This commit is contained in:
Tobias Brunner
2013-10-11 15:13:25 +02:00
parent 3473cbab9c
commit e2c9a03d15
9 changed files with 18 additions and 26 deletions
+2 -2
View File
@@ -249,9 +249,9 @@ METHOD(crypto_factory_t, create_hasher, hasher_t*,
enumerator = this->hashers->create_enumerator(this->hashers);
while (enumerator->enumerate(enumerator, &entry))
{
if (algo == HASH_PREFERRED || entry->algo == algo)
if (entry->algo == algo)
{
if (this->test_on_create && algo != HASH_PREFERRED &&
if (this->test_on_create &&
!this->tester->test_hasher(this->tester, algo,
entry->create_hasher, NULL,
default_plugin_name))