oops, this was a hash_desc

This commit is contained in:
Andreas Steffen 2009-05-15 19:13:32 +02:00
parent 8cabe789a7
commit 11239b55b6
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ static void _natd_hash(const struct hash_desc *oakley_hasher, char *hash,
hasher_t *hasher;
size_t hash_size;
hash_alg = oakley_to_hash_algorithm(oakley_hash);
hash_alg = oakley_to_hash_algorithm(oakley_hasher->algo_id);
hasher = lib->crypto->create_hasher(lib->crypto, hash_alg);
hasher->get_hash(hasher, icookie_chunk, NULL);
hasher->get_hash(hasher, rcookie_chunk, NULL);