diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-05-25 15:16:14 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-05-25 17:42:32 +0100 |
commit | 708fddd747789a101123b09b67c064b119db8873 (patch) | |
tree | 1410d780a7dfa417478f27952da8ef0e9ceffa5c /include | |
parent | ee8172d882e853e737ac7e8b00fb760f21e80bfe (diff) |
Remove session_id from group messages
Putting the session_id inside the packed message body makes it hard to extract
so that we can decide which session to use. We don't think there is any
advantage to having thes sesion_id protected by the HMACs, so we're going to
move it to the JSON framing.
Diffstat (limited to 'include')
-rw-r--r-- | include/olm/message.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/olm/message.h b/include/olm/message.h index e80d54c..5eb504d 100644 --- a/include/olm/message.h +++ b/include/olm/message.h @@ -35,7 +35,6 @@ extern "C" { * The length of the buffer needed to hold a group message. */ size_t _olm_encode_group_message_length( - size_t group_session_id_length, uint32_t chain_index, size_t ciphertext_length, size_t mac_length @@ -45,8 +44,6 @@ size_t _olm_encode_group_message_length( * Writes the message headers into the output buffer. * * version: version number of the olm protocol - * session_id: group session identifier - * session_id_length: length of session_id * message_index: message index * ciphertext_length: length of the ciphertext * output: where to write the output. Should be at least @@ -58,8 +55,6 @@ size_t _olm_encode_group_message_length( */ size_t _olm_encode_group_message( uint8_t version, - const uint8_t *session_id, - size_t session_id_length, uint32_t message_index, size_t ciphertext_length, uint8_t *output, @@ -69,8 +64,6 @@ size_t _olm_encode_group_message( struct _OlmDecodeGroupMessageResults { uint8_t version; - const uint8_t *session_id; - size_t session_id_length; uint32_t message_index; int has_message_index; const uint8_t *ciphertext; |