summaryrefslogtreecommitdiff
path: root/libs/libaxolotl/src/session_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libaxolotl/src/session_state.c')
-rw-r--r--libs/libaxolotl/src/session_state.c19
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)