diff options
Diffstat (limited to 'include/osmocom/msc/auth.h')
-rw-r--r-- | include/osmocom/msc/auth.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/osmocom/msc/auth.h b/include/osmocom/msc/auth.h new file mode 100644 index 000000000..b314bbf19 --- /dev/null +++ b/include/osmocom/msc/auth.h @@ -0,0 +1,22 @@ +#ifndef _AUTH_H +#define _AUTH_H + +#include <osmocom/core/utils.h> + +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 */ |