diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-04-24 12:01:36 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2018-04-24 12:01:36 +0300 |
commit | 0b1150d20f49eb0ec82b57ab3fac727f346c0da0 (patch) | |
tree | 387c1d63df86419dd92f2c6adef701567c6bf91f /libs/libaxolotl/src/session_state.c | |
parent | 0998b447f51c40d2300db7f673e080de20e8f0be (diff) |
libs:
updated libsignal-c
protocols:
jabber: omemo:
used 31bit device id instead of 32bit (32bit conflicts with conversations, not xep compliant)
Diffstat (limited to 'libs/libaxolotl/src/session_state.c')
-rw-r--r-- | libs/libaxolotl/src/session_state.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libs/libaxolotl/src/session_state.c b/libs/libaxolotl/src/session_state.c index 94cf9d3014..a4dfb9a1d4 100644 --- a/libs/libaxolotl/src/session_state.c +++ b/libs/libaxolotl/src/session_state.c @@ -24,7 +24,6 @@ typedef struct session_state_sender_chain { ec_key_pair *sender_ratchet_key_pair; ratchet_chain_key *chain_key; - message_keys_node *message_keys_head; } session_state_sender_chain; typedef struct session_state_receiver_chain @@ -405,13 +404,6 @@ static int session_state_serialize_prepare_sender_chain( } } - if(chain->message_keys_head) { - result = session_state_serialize_prepare_chain_message_keys_list(chain->message_keys_head, chain_structure); - if(result < 0) { - goto complete; - } - } - complete: return result; } @@ -1790,17 +1782,6 @@ static void session_state_free_sender_chain(session_state *state) SIGNAL_UNREF(state->sender_chain.chain_key); state->sender_chain.chain_key = 0; } - - if(state->sender_chain.message_keys_head) { - message_keys_node *cur_node; - message_keys_node *tmp_node; - DL_FOREACH_SAFE(state->sender_chain.message_keys_head, cur_node, tmp_node) { - DL_DELETE(state->sender_chain.message_keys_head, cur_node); - signal_explicit_bzero(&cur_node->message_key, sizeof(ratchet_message_keys)); - free(cur_node); - } - state->sender_chain.message_keys_head = 0; - } } static void session_state_free_receiver_chain_node(session_state_receiver_chain *node) |