laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-iuh/+/33315 )


Change subject: hnb-test.c: Update to libosmocore osmo_auth_gen_vec2
......................................................................

hnb-test.c: 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: I8646caf14783833c4ebea041339c3056e4ac2dea
Depends: libosmocore.git Ie775fedba4a3fa12314c0f7c8a369662ef6a40df
---
M TODO-RELEASE
M tests/hnb-test.c
2 files changed, 17 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/15/33315/1

diff --git a/TODO-RELEASE b/TODO-RELEASE
index d0852fc..00cb753 100644
--- a/TODO-RELEASE
+++ b/TODO-RELEASE
@@ -7,3 +7,4 @@
 # If any interfaces have been added since the last public release: c:r:a + 1.
 # If any interfaces have been removed or changed since the last public 
release: c:r:0.
 #library       what            description / commit summary line
+libosmogsm     update version dependency       depend on libosmogsm >= 
Change-Id Ie775fedba4a3fa12314c0f7c8a369662ef6a40df
diff --git a/tests/hnb-test.c b/tests/hnb-test.c
index de75186..bfccf5a 100644
--- a/tests/hnb-test.c
+++ b/tests/hnb-test.c
@@ -340,7 +340,7 @@
        /* Generate SRES from *HARDCODED* Ki for Iuh testing */
        struct osmo_auth_vector vec;
        /* Ki 000102030405060708090a0b0c0d0e0f */
-       struct osmo_sub_auth_data auth = {
+       struct osmo_sub_auth_data2 auth = {
                .type   = OSMO_AUTH_TYPE_GSM,
                .algo   = OSMO_AUTH_ALG_COMP128v1,
                .u.gsm.ki = {
@@ -351,7 +351,7 @@
        };

        memset(&vec, 0, sizeof(vec));
-       osmo_auth_gen_vec(&vec, &auth, ar->rand);
+       osmo_auth_gen_vec2(&vec, &auth, ar->rand);

        printf("seq %d rand %s",
               seq, osmo_hexdump(ar->rand, sizeof(ar->rand)));

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

Gerrit-Project: osmo-iuh
Gerrit-Branch: master
Gerrit-Change-Id: I8646caf14783833c4ebea041339c3056e4ac2dea
Gerrit-Change-Number: 33315
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>
Gerrit-MessageType: newchange

Reply via email to