Add strings for GPRS ciphers

Change-Id: I050bda5fb50aad42fe2d72de39f8256b4fb12fb2
Related: OS#1582
This commit is contained in:
Max 2016-06-28 14:03:21 +02:00 committed by Harald Welte
parent 6797b3a808
commit b897c42993
3 changed files with 13 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#pragma once
#include <osmocom/core/linuxlist.h>
#include <osmocom/core/utils.h>
#define GSM0464_CIPH_MAX_BLOCK 1523
@ -18,6 +19,8 @@ enum gprs_cipher_direction {
GPRS_CIPH_SGSN2MS,
};
extern const struct value_string gprs_cipher_names[];
/* An implementation of a GPRS cipher */
struct gprs_cipher_impl {
struct llist_head list;

View File

@ -33,6 +33,15 @@ static LLIST_HEAD(gprs_ciphers);
static struct gprs_cipher_impl *selected_ciphers[_GPRS_ALGO_NUM];
const struct value_string gprs_cipher_names[] = {
{ GPRS_ALGO_GEA0, "GEA0" },
{ GPRS_ALGO_GEA1, "GEA1" },
{ GPRS_ALGO_GEA2, "GEA2" },
{ GPRS_ALGO_GEA3, "GEA3" },
{ GPRS_ALGO_GEA4, "GEA4" },
{ 0, NULL },
};
/* register a cipher with the core */
int gprs_cipher_register(struct gprs_cipher_impl *ciph)
{

View File

@ -39,6 +39,7 @@ gprs_cipher_gen_input_ui;
gprs_cipher_load;
gprs_cipher_register;
gprs_cipher_run;
gprs_cipher_names;
gprs_cipher_supported;
gprs_cipher_key_length;
gprs_tlli_type;