summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-03-08 15:14:59 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-03-14 23:58:23 +0100
commit080921a5510323f6cbb0924328c0bb364afd08ce (patch)
treea22b077bb91da5ad97f977e50c28b43574375c2e
parent8e7f4c6f21f32ed5afb356e3279aba4023e08569 (diff)
HACK: hardcode subscriber auth tuple for IuCS
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index 6a8586bc4..7003ddde8 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -175,6 +175,18 @@ int gsm48_secure_channel(struct gsm_subscriber_connection *conn, int key_seq,
/* If not done yet, try to get info for this user */
if (status < 0) {
+ /* DEV HACK: hardcode keys for Iu */
+ if (conn->via_iface == IFACE_IU) {
+ /* Ki 000102030405060708090a0b0c0d0e0f */
+ atuple = (struct gsm_auth_tuple ) {
+ .key_seq = 0,
+ .rand = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 },
+ .sres = { 0x61, 0xb5, 0x69, 0xf5 },
+ .kc = { 0xd9, 0xd9, 0xc2, 0xed, 0x62, 0x7d, 0x68, 0x00 },
+ };
+ rc = AUTH_DO_AUTH;
+ }
+ else
rc = auth_get_tuple_for_subscr(&atuple, subscr, key_seq);
DEBUGP(DMM, "auth_get_tuple_for_subscr(%s) == %d\n",
subscr_name(subscr), rc);