This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Review at https://gerrit.osmocom.org/1505
auth.c: more logging
Change-Id: I5660a0a53910bc1d0b96d4eafd37c0e0559aa49c
---
M openbsc/src/libmsc/auth.c
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/05/1505/1
diff --git a/openbsc/src/libmsc/auth.c b/openbsc/src/libmsc/auth.c
index bf62d3c..3fccd16 100644
--- a/openbsc/src/libmsc/auth.c
+++ b/openbsc/src/libmsc/auth.c
@@ -110,6 +110,7 @@
}
/* Generate a new one */
+ DEBUGP(DMM, "%s: Generate new auth tuple\n", subscr_name(subscr));
if (rc != 0) {
/* If db_get_lastauthtuple_for_subscr() returned nothing, make
* sure the atuple memory is initialized to zero and thus start
@@ -135,11 +136,13 @@
case AUTH_ALGO_XOR:
if (_use_xor(&ainfo, atuple))
return AUTH_NOT_AVAIL;
+ DEBUGP(DMM, "%s: auth algo: xor\n", subscr_name(subscr));
break;
case AUTH_ALGO_COMP128v1:
if (_use_comp128_v1(&ainfo, atuple))
return AUTH_NOT_AVAIL;
+ DEBUGP(DMM, "%s: auth algo: comp128v1\n", subscr_name(subscr));
break;
default:
@@ -151,6 +154,9 @@
db_sync_lastauthtuple_for_subscr(atuple, subscr);
DEBUGP(DMM, "Need to do authentication and ciphering\n");
+ DEBUGP(DMM, "rand %s\n", osmo_hexdump_nospc(atuple->vec.rand, sizeof(atuple->vec.rand)));
+ DEBUGP(DMM, "kc %s\n", osmo_hexdump_nospc(atuple->vec.kc, sizeof(atuple->vec.kc)));
+ DEBUGP(DMM, "sres %s\n", osmo_hexdump_nospc(atuple->vec.sres, sizeof(atuple->vec.sres)));
return AUTH_DO_AUTH_THEN_CIPH;
}
--
To view, visit https://gerrit.osmocom.org/1505
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5660a0a53910bc1d0b96d4eafd37c0e0559aa49c
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>