From 781bd5daeb98774628ccb7546d449704ea6f7330 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 6 Dec 2011 22:23:52 +0100 Subject: Auth: Import milenage implementation from hostap (Jouni Malinen) ... and add integration into the osmo_auth core. --- src/gsm/auth_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gsm/auth_core.c') 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; -- cgit v1.2.3