diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-01-27 00:25:47 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-03 05:35:25 +0100 |
commit | d675515bd4854e1905d27c096fa949944744b010 (patch) | |
tree | 7ec22920dd1b259aa03f34b91bdde70af5e15a5a /openbsc/src/libmsc/token_auth.c | |
parent | ba1468e4c66a3f6d5eef2f8ad67188805d07c9b6 (diff) |
gsm48_tx_mm_auth_req(): support UMTS AUTN
To be able to do R99 UMTS authentication, we need to send along AUTN bytes in
the Authentication Request. Add autn parameter to gsm48_tx_mm_auth_req() and
conditionally append the R99 AUTN TLV to the Authentication Request message.
Change-Id: I0d644559088706aa06b42b9bfe1f8c21ca6fa4da
Diffstat (limited to 'openbsc/src/libmsc/token_auth.c')
-rw-r--r-- | openbsc/src/libmsc/token_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libmsc/token_auth.c b/openbsc/src/libmsc/token_auth.c index 95fd9b345..5af1e980b 100644 --- a/openbsc/src/libmsc/token_auth.c +++ b/openbsc/src/libmsc/token_auth.c @@ -106,7 +106,7 @@ unauth: if (conn) { uint8_t auth_rand[16]; /* kick the subscriber off the network */ - gsm48_tx_mm_auth_req(conn, auth_rand, 0); + gsm48_tx_mm_auth_req(conn, auth_rand, NULL, 0); gsm48_tx_mm_auth_rej(conn); /* FIXME: close the channel early ?*/ //gsm48_send_rr_Release(lchan); @@ -143,7 +143,7 @@ static int token_sms_cb(unsigned int subsys, unsigned int signal, conn = connection_for_subscr(sms->receiver); if (conn) { /* kick the subscriber off the network */ - gsm48_tx_mm_auth_req(conn, auth_rand, 0); + gsm48_tx_mm_auth_req(conn, auth_rand, NULL, 0); gsm48_tx_mm_auth_rej(conn); /* FIXME: close the channel early ?*/ //gsm48_send_rr_Release(lchan); |