summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-05-31 17:37:54 +0200
committerAlexander Couzens <lynxis@fe80.eu>2016-05-31 17:47:52 +0200
commit85f8fdabc3b90b3c9571db05daa8a68d9e113fdf (patch)
treeefda35f2a961531327fab803ab5170e5bb818f78
parent69e9c0dfc6cc10c07d03f8800d8ff7197fe97c8b (diff)
gprs: use new uint8_t * for kv in gprs_cipher_run()
libosmocore changed in bf990bb8 Update internal GPRS cipher API from uint_64 to uint8_t*. Fix a warning. Change-Id: Ib5bfe1fb05c693347b11ff4faadd3fc2205ebd76
-rw-r--r--openbsc/src/gprs/gprs_llc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c
index 4cf5163..883f0cc 100644
--- a/openbsc/src/gprs/gprs_llc.c
+++ b/openbsc/src/gprs/gprs_llc.c
@@ -410,7 +410,7 @@ int gprs_llc_tx_ui(struct msgb *msg, uint8_t sapi, int command,
uint8_t cipher_out[GSM0464_CIPH_MAX_BLOCK];
uint32_t iv;
int rc, i;
- uint64_t kc = *(uint64_t *)&lle->llme->kc;
+ uint8_t *kc = lle->llme->kc;
/* Compute the 'Input' Paraemeter */
iv = gprs_cipher_gen_input_ui(iov_ui, sapi, nu, oc);
@@ -611,7 +611,7 @@ int gprs_llc_rcvmsg(struct msgb *msg, struct tlv_parsed *tv)
uint16_t crypt_len = llhp.data_len + 3;
uint8_t cipher_out[GSM0464_CIPH_MAX_BLOCK];
uint32_t iv;
- uint64_t kc = *(uint64_t *)&lle->llme->kc;
+ uint8_t *kc = lle->llme->kc;
int rc, i;
if (lle->llme->algo == GPRS_ALGO_GEA0) {