diff options
author | Max <msuraev@sysmocom.de> | 2017-12-01 19:06:21 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-12-04 09:40:32 +0000 |
commit | 38b17235339c8d0223f00d3b3a54626c32184f9d (patch) | |
tree | 9a780e9c1d1de24f17d6ef069b28dc401a0a502a /src/gsm | |
parent | 37a83405a5ebbaebc02b7ce8fb9c8bf597cd678c (diff) |
Fix embedded build
Do not attempt to load auth plugins - this does not make sense on
embedded target anyway.
Change-Id: Ie92d2eea21e19e499b3f3bb4d5a82e31fbbea3f0
Diffstat (limited to 'src/gsm')
-rw-r--r-- | src/gsm/auth_core.c | 6 | ||||
-rw-r--r-- | src/gsm/gprs_cipher_core.c | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/gsm/auth_core.c b/src/gsm/auth_core.c index 9e3b2c01..400708f9 100644 --- a/src/gsm/auth_core.c +++ b/src/gsm/auth_core.c @@ -20,6 +20,8 @@ * */ +#include "config.h" + #include <errno.h> #include <stdint.h> #include <string.h> @@ -71,7 +73,11 @@ int osmo_auth_register(struct osmo_auth_impl *impl) int osmo_auth_load(const char *path) { /* load all plugins available from path */ +#if !defined(EMBEDDED) return osmo_plugin_load_all(path); +#else + return -1; +#endif } /*! Determine if a given authentication algorithm is supported diff --git a/src/gsm/gprs_cipher_core.c b/src/gsm/gprs_cipher_core.c index 6fa25d60..7f2b1a50 100644 --- a/src/gsm/gprs_cipher_core.c +++ b/src/gsm/gprs_cipher_core.c @@ -23,6 +23,8 @@ * */ +#include "config.h" + #include <errno.h> #include <stdint.h> @@ -68,9 +70,11 @@ int gprs_cipher_register(struct gprs_cipher_impl *ciph) /* load all available GPRS cipher plugins */ int gprs_cipher_load(const char *path) { +#if !defined(EMBEDDED) /* load all plugins available from path */ if (path) return osmo_plugin_load_all(path); +#endif return 0; } |