From 38b17235339c8d0223f00d3b3a54626c32184f9d Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 1 Dec 2017 19:06:21 +0100 Subject: Fix embedded build Do not attempt to load auth plugins - this does not make sense on embedded target anyway. Change-Id: Ie92d2eea21e19e499b3f3bb4d5a82e31fbbea3f0 --- src/gsm/auth_core.c | 6 ++++++ src/gsm/gprs_cipher_core.c | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'src/gsm') 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 #include #include @@ -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 #include @@ -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; } -- cgit v1.2.3