2009-12-23 23:27:26 +00:00
|
|
|
/* Authentication related functions */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* (C) 2010 by Sylvain Munaut <tnt@246tNt.com>
|
|
|
|
*
|
|
|
|
* All Rights Reserved
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
2011-01-01 14:25:50 +00:00
|
|
|
* 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
|
2009-12-23 23:27:26 +00:00
|
|
|
* (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
|
2011-01-01 14:25:50 +00:00
|
|
|
* GNU Affero General Public License for more details.
|
2009-12-23 23:27:26 +00:00
|
|
|
*
|
2011-01-01 14:25:50 +00:00
|
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2009-12-23 23:27:26 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2017-09-04 13:04:35 +00:00
|
|
|
#include <osmocom/msc/db.h>
|
|
|
|
#include <osmocom/msc/debug.h>
|
|
|
|
#include <osmocom/msc/auth.h>
|
|
|
|
#include <osmocom/msc/gsm_data.h>
|
2009-12-23 23:27:26 +00:00
|
|
|
|
2011-03-22 15:47:59 +00:00
|
|
|
#include <osmocom/gsm/comp128.h>
|
2016-12-16 13:16:53 +00:00
|
|
|
#include <osmocom/core/utils.h>
|
2009-12-23 23:27:26 +00:00
|
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2016-03-30 09:22:24 +00:00
|
|
|
const struct value_string auth_action_names[] = {
|
2016-12-16 13:16:53 +00:00
|
|
|
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),
|
2016-12-16 13:16:41 +00:00
|
|
|
{ 0, NULL }
|
2016-03-30 09:22:24 +00:00
|
|
|
};
|