diff options
-rw-r--r-- | openbsc/src/gprs/gprs_gmm.c | 4 | ||||
-rw-r--r-- | openbsc/src/libmsc/gsm_04_08.c | 4 |
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); |