summaryrefslogtreecommitdiffstats
path: root/include/l1ctl_proto.h
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-12-16 17:52:31 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-03-14 22:22:39 +0700
commita4d255269a7d4e58d2ec0fbb42483495b8c247c9 (patch)
tree0f7100028dc7eadbcf465aad5131f8517c0f09ac /include/l1ctl_proto.h
parent8b9d3170ff265c934f6271bd445ff5a6788ffffb (diff)
L1CTL/L1CTL_CRYPTO_REQ: add key length and channel info
Previously, the L1CTL_CRYPTO_REQ message contained only a ciphering algorithm and actual Kc key to be used. The key length was calculated manually using the MSGB API. Let's avoid manual calculations here, as it may cause unexpected behavior if the message structure is changed. Also, let's fill the UL header with minimal information about a channel, which is going to be encrypted. Change-Id: I5fab079907c5276322d3ec2b46cab81f10c7ed09
Diffstat (limited to 'include/l1ctl_proto.h')
-rw-r--r--include/l1ctl_proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h
index 17065349..9d548bc4 100644
--- a/include/l1ctl_proto.h
+++ b/include/l1ctl_proto.h
@@ -281,6 +281,7 @@ struct l1ctl_dm_freq_req {
struct l1ctl_crypto_req {
uint8_t algo;
+ uint8_t key_len;
uint8_t key[0];
} __attribute__((packed));