diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-10-07 04:41:22 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-10-09 16:30:45 +0200 |
commit | 26e30b1309517183db0ae56620195707f748ced4 (patch) | |
tree | 17e8e86cafeec7f00948a757c824173088a15a5a /src/gsm/auth_core.c | |
parent | 4b2b0cc15d51d7916a939de06a7e83d8042211dc (diff) |
auth: add value_strings for osmo_sub_auth_type, comment on osmo_auth_alg_name()
Add osmo_sub_auth_type_names[] and osmo_sub_auth_type_name().
Also add a hint to enum osmo_auth_algo's API doc that osmo_auth_alg_name()
already exists (it is defined further below).
Change-Id: I652a929bcd11c694d86812fb03d0a1cbd985efda
Diffstat (limited to 'src/gsm/auth_core.c')
-rw-r--r-- | src/gsm/auth_core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gsm/auth_core.c b/src/gsm/auth_core.c index 41566959..738e8609 100644 --- a/src/gsm/auth_core.c +++ b/src/gsm/auth_core.c @@ -221,4 +221,11 @@ enum osmo_auth_algo osmo_auth_alg_parse(const char *name) return get_string_value(auth_alg_vals, name); } +const struct value_string osmo_sub_auth_type_names[] = { + { OSMO_AUTH_TYPE_NONE, "None" }, + { OSMO_AUTH_TYPE_GSM, "GSM" }, + { OSMO_AUTH_TYPE_UMTS, "UMTS" }, + { 0, NULL } +}; + /*! @} */ |