diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2016-04-19 20:04:00 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2016-04-19 20:04:00 +0200 |
commit | 444a516f18a7a2073b26f9d01e754853015c178e (patch) | |
tree | 6f77883397aaeec668190c253957a4396fc4d6ac /openbsc/src/libiu/iu.c | |
parent | 0f3bce4aef1bcbf384fa1c5ae2b24c5b0d6fc13b (diff) |
gprs: Keep track of key negotiation and set the key status flag in sec_mod_cmd
Diffstat (limited to 'openbsc/src/libiu/iu.c')
-rw-r--r-- | openbsc/src/libiu/iu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/libiu/iu.c b/openbsc/src/libiu/iu.c index ea99f172d..20590766a 100644 --- a/openbsc/src/libiu/iu.c +++ b/openbsc/src/libiu/iu.c @@ -116,7 +116,7 @@ int iu_rab_deact(struct ue_conn_ctx *ue_ctx, uint8_t rab_id) } int iu_tx_sec_mode_cmd(struct ue_conn_ctx *uectx, struct gsm_auth_tuple *tp, - int send_ck) + int send_ck, int new_key) { struct osmo_scu_prim *prim; struct msgb *msg; @@ -138,7 +138,7 @@ int iu_tx_sec_mode_cmd(struct ue_conn_ctx *uectx, struct gsm_auth_tuple *tp, } /* crate RANAP message */ - msg = ranap_new_msg_sec_mod_cmd(ik, send_ck? ck : NULL); + msg = ranap_new_msg_sec_mod_cmd(ik, send_ck? ck : NULL, new_key ? RANAP_KeyStatus_new : RANAP_KeyStatus_old); msg->l2h = msg->data; /* wrap RANAP message in SCCP N-DATA.req */ prim = (struct osmo_scu_prim *) msgb_push(msg, sizeof(*prim)); |