summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2023-06-14 15:11:21 +0200
committerlaforge <laforge@osmocom.org>2023-06-15 09:23:45 +0000
commitdf900478de4f3931539c9f2b0387f9800a785f9f (patch)
tree366312230d600512d45c1b44f4318d1a7cbeb24a
parent96fec1646d714ab1880bf69106c0c556fd849ba3 (diff)
layer23: Update to libosmocore osmo_auth_gen_vec2
libosmogsm has recently deprecated the use of osmo_auth_gen_vec and the osmo_sub_auth_data structure in favor of newer versions of this API. Let's migrate to it Change-Id: I1d9751c5f74a59e7310d07d54a3fdbac213324bd Depends: libosmocore.git Ie775fedba4a3fa12314c0f7c8a369662ef6a40df
-rw-r--r--src/host/layer23/src/common/subscriber.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/layer23/src/common/subscriber.c b/src/host/layer23/src/common/subscriber.c
index 78b1be0f..f6aa05d5 100644
--- a/src/host/layer23/src/common/subscriber.c
+++ b/src/host/layer23/src/common/subscriber.c
@@ -639,7 +639,7 @@ static int gsm_subscr_generate_kc_testcard(struct osmocom_ms *ms, uint8_t key_se
struct osmobb_l23_subscr_sim_auth_resp_sig_data sd;
struct gsm_settings *set = &ms->settings;
- static struct osmo_sub_auth_data auth = {
+ static struct osmo_sub_auth_data2 auth = {
.type = OSMO_AUTH_TYPE_GSM
};
struct osmo_auth_vector _vec;
@@ -647,7 +647,7 @@ static int gsm_subscr_generate_kc_testcard(struct osmocom_ms *ms, uint8_t key_se
auth.algo = set->test_sim.ki_type;
memcpy(auth.u.gsm.ki, set->test_sim.ki, sizeof(auth.u.gsm.ki));
- int ret = osmo_auth_gen_vec(vec, &auth, rand);
+ int ret = osmo_auth_gen_vec2(vec, &auth, rand);
if (ret < 0)
return ret;