summaryrefslogtreecommitdiffstats
path: root/src/gsm/auth_core.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-12-06 22:23:52 +0100
committerHarald Welte <laforge@gnumonks.org>2011-12-06 22:50:31 +0100
commit781bd5daeb98774628ccb7546d449704ea6f7330 (patch)
tree64a910b7b3679b1fbedaf21d6d119b1f7b87ba0e /src/gsm/auth_core.c
parentd82e0eb697abab4eb994800ab649bc36cca99a83 (diff)
Auth: Import milenage implementation from hostap (Jouni Malinen)
... and add integration into the osmo_auth core.
Diffstat (limited to 'src/gsm/auth_core.c')
-rw-r--r--src/gsm/auth_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gsm/auth_core.c b/src/gsm/auth_core.c
index 78121bf7..c578df9d 100644
--- a/src/gsm/auth_core.c
+++ b/src/gsm/auth_core.c
@@ -71,7 +71,7 @@ int osmo_auth_gen_vec(struct osmo_auth_vector *vec,
struct osmo_sub_auth_data *aud,
const uint8_t *_rand)
{
- struct osmo_auth_impl *impl = selected_auths[aud->type];
+ struct osmo_auth_impl *impl = selected_auths[aud->algo];
if (!impl)
return -ENOENT;
@@ -84,7 +84,7 @@ int osmo_auth_gen_vec_auts(struct osmo_auth_vector *vec,
const uint8_t *rand_auts, const uint8_t *auts,
const uint8_t *_rand)
{
- struct osmo_auth_impl *impl = selected_auths[aud->type];
+ struct osmo_auth_impl *impl = selected_auths[aud->algo];
if (!impl || !impl->gen_vec_auts)
return -ENOENT;