diff --git a/include/osmocom/msc/Makefile.am b/include/osmocom/msc/Makefile.am index 0adc74655..9c82d2feb 100644 --- a/include/osmocom/msc/Makefile.am +++ b/include/osmocom/msc/Makefile.am @@ -1,7 +1,6 @@ noinst_HEADERS = \ a_iface.h \ a_iface_bssap.h \ - auth.h \ bsc_api.h \ bsc_msc.h \ bsc_rll.h \ diff --git a/include/osmocom/msc/auth.h b/include/osmocom/msc/auth.h deleted file mode 100644 index b314bbf19..000000000 --- a/include/osmocom/msc/auth.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef _AUTH_H -#define _AUTH_H - -#include - -struct gsm_auth_tuple; - -enum auth_action { - AUTH_ERROR = -1, /* Internal error */ - AUTH_NOT_AVAIL = 0, /* No auth tuple available */ - AUTH_DO_AUTH_THEN_CIPH = 1, /* Firsth authenticate, then cipher */ - AUTH_DO_CIPH = 2, /* Only ciphering */ - AUTH_DO_AUTH = 3, /* Only authentication, no ciphering */ -}; - -extern const struct value_string auth_action_names[]; -static inline const char *auth_action_str(enum auth_action a) -{ - return get_value_string(auth_action_names, a); -} - -#endif /* _AUTH_H */ diff --git a/src/libmsc/Makefile.am b/src/libmsc/Makefile.am index 644994874..8ae0e182b 100644 --- a/src/libmsc/Makefile.am +++ b/src/libmsc/Makefile.am @@ -28,7 +28,6 @@ noinst_LIBRARIES = \ libmsc_a_SOURCES = \ a_iface.c \ a_iface_bssap.c \ - auth.c \ msc_vty.c \ db.c \ gsm_04_08.c \ diff --git a/src/libmsc/auth.c b/src/libmsc/auth.c deleted file mode 100644 index 7c78c6ece..000000000 --- a/src/libmsc/auth.c +++ /dev/null @@ -1,40 +0,0 @@ -/* Authentication related functions */ - -/* - * (C) 2010 by Sylvain Munaut - * - * All Rights Reserved - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as published by - * the Free Software Foundation; either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ - -#include -#include -#include -#include - -#include -#include - -#include - -const struct value_string auth_action_names[] = { - OSMO_VALUE_STRING(AUTH_ERROR), - OSMO_VALUE_STRING(AUTH_NOT_AVAIL), - OSMO_VALUE_STRING(AUTH_DO_AUTH_THEN_CIPH), - OSMO_VALUE_STRING(AUTH_DO_CIPH), - OSMO_VALUE_STRING(AUTH_DO_AUTH), - { 0, NULL } -}; diff --git a/src/libmsc/gsm_04_08.c b/src/libmsc/gsm_04_08.c index 7afd0c78f..126a216e1 100644 --- a/src/libmsc/gsm_04_08.c +++ b/src/libmsc/gsm_04_08.c @@ -34,7 +34,6 @@ #include "bscconfig.h" -#include #include #include #include