From 757c422578b417f5184fa9e17a32587de676b9d1 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 28 Jun 2016 16:45:31 +0100 Subject: Remove unused 'chain_index' from Ratchet This was introduced when I was experimenting with support for logging progress in Olm. That is now relegated to the logging_enabled branch, so this should probably be removed. This also fixes the incompatibility of session pickles from the current master branch with those from olm 0.1.0. --- include/olm/ratchet.hh | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include/olm') diff --git a/include/olm/ratchet.hh b/include/olm/ratchet.hh index acb5608..aaa3579 100644 --- a/include/olm/ratchet.hh +++ b/include/olm/ratchet.hh @@ -81,16 +81,6 @@ struct Ratchet { /** The last error that happened encrypting or decrypting a message. */ OlmErrorCode last_error; - /** - * A count of the number of times the root key has been advanced; this is - * maintained purely for diagnostics. - * - * If sender_chain is empty, this will be the index of the current receiver - * chain (odd for Alice, even for Bob); otherwise, the index of the current - * sender chain (even for Alice, odd for Bob). - */ - std::uint32_t chain_index; - /** The root key is used to generate chain keys from the ephemeral keys. * A new root_key derived each time a new chain is started. */ SharedKey root_key; -- cgit v1.2.3