laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/33316 )


Change subject: layer23: Update to libosmocore osmo_auth_gen_vec2
......................................................................

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
---
M src/host/layer23/src/common/subscriber.c
1 file changed, 16 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/16/33316/1

diff --git a/src/host/layer23/src/common/subscriber.c 
b/src/host/layer23/src/common/subscriber.c
index 78b1be0..f6aa05d 100644
--- a/src/host/layer23/src/common/subscriber.c
+++ b/src/host/layer23/src/common/subscriber.c
@@ -639,7 +639,7 @@
        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 @@

        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;


--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/33316
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I1d9751c5f74a59e7310d07d54a3fdbac213324bd
Gerrit-Change-Number: 33316
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange

Reply via email to