diff options
author | Richard van der Hoff <richard@matrix.org> | 2016-06-28 16:45:31 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2016-06-30 11:31:36 +0100 |
commit | 757c422578b417f5184fa9e17a32587de676b9d1 (patch) | |
tree | 0705aafabc9a76741f7cf0779442bfb38c511421 /include | |
parent | 803672931af04cbfdb614d45f72061c35ba5d095 (diff) |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/olm/ratchet.hh | 10 |
1 files changed, 0 insertions, 10 deletions
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; |