st_okley.hash contains hash algorithm

This commit is contained in:
Andreas Steffen
2009-05-15 19:10:42 +02:00
parent d8cb1d1668
commit 8cabe789a7
3 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ static size_t modecfg_hash(u_char *dest, u_char *start, u_char *roof,
pseudo_random_function_t prf_alg;
prf_t *prf;
prf_alg = oakley_to_prf(st->st_oakley.hasher->algo_id);
prf_alg = oakley_to_prf(st->st_oakley.hash);
prf = lib->crypto->create_prf(lib->crypto, prf_alg);
prf->set_key(prf, st->st_skeyid_a);
prf->get_bytes(prf, msgid_chunk, NULL);