aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-06-30 19:59:55 +0200
committerHarald Welte <laforge@gnumonks.org>2010-07-02 22:54:55 +0200
commit496aee463faf8bb0d1fe5062fcee5b52bd5eec52 (patch)
tree455c14a77e4160490842e6540b702e130b2df0a2 /openbsc/src
parent6ed4950d5bf384c8c9984d2ee863789b3ddcd66b (diff)
[SGSN] Call libosmocore helper to load cipher plugins
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/gprs/gprs_llc.c5
-rw-r--r--openbsc/src/gprs/sgsn_main.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c
index 98193d9fd..7e16d1b96 100644
--- a/openbsc/src/gprs/gprs_llc.c
+++ b/openbsc/src/gprs/gprs_llc.c
@@ -749,3 +749,8 @@ int gprs_llgmm_assign(struct gprs_llc_llme *llme,
return 0;
}
+
+int gprs_llc_init(const char *cipher_plugin_path)
+{
+ return gprs_cipher_load(cipher_plugin_path);
+}
diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c
index 26478671b..92f431082 100644
--- a/openbsc/src/gprs/sgsn_main.c
+++ b/openbsc/src/gprs/sgsn_main.c
@@ -170,6 +170,9 @@ int main(int argc, char **argv)
exit(1);
}
bssgp_nsi = sgsn_inst.cfg.nsi = sgsn_nsi;
+
+ gprs_llc_init("/usr/local/lib/osmocom/crypt/");
+
gprs_ns_vty_init(bssgp_nsi);
gprs_bssgp_vty_init();
gprs_llc_vty_init();