aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-04-13 19:13:35 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-04-20 11:23:00 +0200
commitafce55a4bc6cd4ccdffece99ad37cc1b20b663e7 (patch)
treebc26dcdf6c2edc09f6ff1958812cabd2eb453ddc /openbsc
parentf3a1ca5d047d13acc3e94173b994afa2219d51de (diff)
tweak tmp_rand[] type to avoid compiler warnings
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gprs/gprs_gmm.c4
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
index 30a585de9..aa376d848 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -1087,7 +1087,7 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg,
if (ctx->ran_type == MM_CTX_T_GERAN_Gb)
ctx->gb.cell_id = cid;
else if (ctx->ran_type == MM_CTX_T_UTRAN_Iu) {
- uint8_t tmp_rand[16];
+ unsigned char tmp_rand[16];
struct osmo_auth_vector vec;
/* Ki 000102030405060708090a0b0c0d0e0f */
struct osmo_sub_auth_data auth = {
@@ -1103,7 +1103,7 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg,
/* XXX: Hack to make 3G auth work with special SIM card */
ctx->auth_state = SGSN_AUTH_AUTHENTICATE;
- RAND_bytes(&tmp_rand, 16);
+ RAND_bytes(tmp_rand, 16);
memset(&vec, 0, sizeof(vec));
osmo_auth_gen_vec(&vec, &auth, tmp_rand);
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index 418a505b0..be03fd7d5 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -146,7 +146,7 @@ void allocate_security_operation(struct gsm_subscriber_connection *conn)
int iu_hack__get_hardcoded_auth_tuple(struct gsm_auth_tuple *atuple)
{
- uint8_t tmp_rand[16];
+ unsigned char tmp_rand[16];
struct osmo_auth_vector vec;
/* Ki 000102030405060708090a0b0c0d0e0f */
struct osmo_sub_auth_data auth = {
@@ -159,7 +159,7 @@ int iu_hack__get_hardcoded_auth_tuple(struct gsm_auth_tuple *atuple)
},
};
- RAND_bytes(&tmp_rand, sizeof(tmp_rand));
+ RAND_bytes(tmp_rand, sizeof(tmp_rand));
memset(&vec, 0, sizeof(vec));
osmo_auth_gen_vec(&vec, &auth, tmp_rand);