diff options
author | Max <msuraev@sysmocom.de> | 2016-07-06 15:57:01 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-07-16 21:11:10 +0000 |
commit | b997f8444313ff7ab99d66b400fc79cae8302166 (patch) | |
tree | 48b991298a745e79a59d04b7b1b522f91b885ced /openbsc/src/gprs/gprs_sgsn.c | |
parent | 5aa5196fbf07d5311bf4d99a90bff303989564f0 (diff) |
SGSN: add preliminary support for GPRS encryption
It is already functional enough to allow testing with real
phones. However, note - there are several limitations in the current
implementation:
* only default value for IOV-UI is supported at the moment
* AUTN-based key material is not supported
Related: OS#1582
Change-Id: I8900b906693496e4e6b35be5a86937c58039ed9e
Diffstat (limited to 'openbsc/src/gprs/gprs_sgsn.c')
-rw-r--r-- | openbsc/src/gprs/gprs_sgsn.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c index 711887e08..c2f2d5ba5 100644 --- a/openbsc/src/gprs/gprs_sgsn.c +++ b/openbsc/src/gprs/gprs_sgsn.c @@ -169,6 +169,7 @@ struct sgsn_mm_ctx *sgsn_mm_ctx_alloc(uint32_t tlli, ctx->gb.tlli = tlli; ctx->mm_state = GMM_DEREGISTERED; ctx->auth_triplet.key_seq = GSM_KEY_SEQ_INVAL; + ctx->ciph_algo = sgsn->cfg.cipher; ctx->ctrg = rate_ctr_group_alloc(ctx, &mmctx_ctrg_desc, tlli); INIT_LLIST_HEAD(&ctx->pdp_list); @@ -604,11 +605,6 @@ int drop_all_pdp_for_ggsn(struct sgsn_ggsn_ctx *ggsn) return num; } -int sgsn_force_reattach_oldmsg(struct msgb *oldmsg) -{ - return gsm0408_gprs_force_reattach_oldmsg(oldmsg); -} - void sgsn_update_subscriber_data(struct sgsn_mm_ctx *mmctx) { OSMO_ASSERT(mmctx != NULL); |