aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_data.h
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2009-12-27 21:56:14 +0100
committerHarald Welte <laforge@netfilter.org>2010-01-03 10:54:30 +0100
commit4719307f502a8746a04a78987f65d787b281bffc (patch)
tree17b9b64f72e2aab1a9fe9d82d906a51e19eec7be /openbsc/include/openbsc/gsm_data.h
parentd7c9e5cad887cd5bcfff9dfcc726e070750404bf (diff)
gsm_data: Move auth related structure earlier
This is gonna be needed by the next commit ... Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/include/openbsc/gsm_data.h')
-rw-r--r--openbsc/include/openbsc/gsm_data.h42
1 files changed, 22 insertions, 20 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h
index a6bc16a14..4a6acb52a 100644
--- a/openbsc/include/openbsc/gsm_data.h
+++ b/openbsc/include/openbsc/gsm_data.h
@@ -120,6 +120,28 @@ struct gsm_bts_link {
struct gsm_bts *bts;
};
+/* Real authentication information containing Ki */
+enum gsm_auth_algo {
+ AUTH_ALGO_NONE,
+ AUTH_ALGO_XOR,
+ AUTH_ALGO_COMP128v1,
+};
+
+struct gsm_auth_info {
+ enum gsm_auth_algo auth_algo;
+ unsigned int a3a8_ki_len;
+ u_int8_t a3a8_ki[16];
+};
+
+struct gsm_auth_tuple {
+ int use_count;
+ int key_seq;
+ u_int8_t rand[16];
+ u_int8_t sres[4];
+ u_int8_t kc[8];
+};
+
+
struct gsm_lchan;
struct gsm_subscriber;
struct gsm_mncc;
@@ -591,26 +613,6 @@ struct gsm_sms {
char text[SMS_TEXT_SIZE];
};
-enum gsm_auth_algo {
- AUTH_ALGO_NONE,
- AUTH_ALGO_XOR,
- AUTH_ALGO_COMP128v1,
-};
-
-/* Real authentication information containing Ki */
-struct gsm_auth_info {
- enum gsm_auth_algo auth_algo;
- unsigned int a3a8_ki_len;
- u_int8_t a3a8_ki[16];
-};
-
-struct gsm_auth_tuple {
- int use_count;
- int key_seq;
- u_int8_t rand[16];
- u_int8_t sres[4];
- u_int8_t kc[8];
-};
struct gsm_network *gsm_network_init(u_int16_t country_code, u_int16_t network_code,
int (*mncc_recv)(struct gsm_network *, int, void *));