aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2018-05-14 06:48:24 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-23 16:19:52 +0000
commit8007be41fe4aee2ae6821d186366624a4ea72ee9 (patch)
treedb6f03318672baaed5794970642ee0b84c242aef
parentd4788cdf653bac49907eef7b1d2856bdd53fb0a5 (diff)
gprs_gmm: make extract_subscr_msisdn extract_subscr_hlr public
-rw-r--r--include/osmocom/sgsn/gprs_gmm.h3
-rw-r--r--src/gprs/gprs_gmm.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/include/osmocom/sgsn/gprs_gmm.h b/include/osmocom/sgsn/gprs_gmm.h
index b89eff56..3c93efcb 100644
--- a/include/osmocom/sgsn/gprs_gmm.h
+++ b/include/osmocom/sgsn/gprs_gmm.h
@@ -40,4 +40,7 @@ int gsm48_tx_gmm_att_rej(struct sgsn_mm_ctx *mm,
uint8_t gmm_cause);
int gsm48_tx_gmm_att_ack(struct sgsn_mm_ctx *mm);
+/* TODO: move extract_subscr_* when gsm48_gmm_authorize() got removed */
+void extract_subscr_msisdn(struct sgsn_mm_ctx *ctx);
+void extract_subscr_hlr(struct sgsn_mm_ctx *ctx);
#endif /* _GPRS_GMM_H */
diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index df498c1a..57d38830 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -848,7 +848,7 @@ static int gsm48_rx_gmm_auth_ciph_fail(struct sgsn_mm_ctx *ctx,
return rc;
}
-static void extract_subscr_msisdn(struct sgsn_mm_ctx *ctx)
+void extract_subscr_msisdn(struct sgsn_mm_ctx *ctx)
{
struct gsm_mncc_number called;
uint8_t msisdn[sizeof(ctx->subscr->sgsn_data->msisdn) + 1];
@@ -879,7 +879,7 @@ static void extract_subscr_msisdn(struct sgsn_mm_ctx *ctx)
}
}
-static void extract_subscr_hlr(struct sgsn_mm_ctx *ctx)
+void extract_subscr_hlr(struct sgsn_mm_ctx *ctx)
{
struct gsm_mncc_number called;
uint8_t hlr_number[sizeof(ctx->subscr->sgsn_data->hlr) + 1];