diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-03-31 16:14:13 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2016-03-31 16:14:13 +0200 |
commit | b70dfa610d89786aa72a4adb4ffc1ba27a5f8af4 (patch) | |
tree | 46b8ad0e9463c83b3a36344dc0ae050adc6ed358 /openbsc/include | |
parent | 4b940126a3132ac6d6da4194229f2b8cb642c2ec (diff) | |
parent | cf1302e4cb4875816615a23e5d7e2e9f7bcb5bca (diff) |
Merge branch 'master' into sysmocom/iu
Conflicts:
openbsc/src/libmsc/auth.c
openbsc/src/libmsc/gsm_04_08.c
openbsc/src/osmo-bsc/osmo_bsc_vty.c
openbsc/tests/Makefile.am
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/auth.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/auth.h b/openbsc/include/openbsc/auth.h index d41d1419b..61811316b 100644 --- a/openbsc/include/openbsc/auth.h +++ b/openbsc/include/openbsc/auth.h @@ -1,16 +1,25 @@ #ifndef _AUTH_H #define _AUTH_H +#include <osmocom/core/utils.h> + struct gsm_auth_tuple; struct gsm_subscriber; 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); +} + int auth_get_tuple_for_subscr(struct gsm_auth_tuple *atuple, struct gsm_subscriber *subscr, int key_seq); |