From 8dd3c182ee568b9121a336b106aaaceedd1cc470 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 30 Jun 2016 11:27:25 +0100 Subject: Make space in the session pickle for chain index Keeping track of the chain index is a useful thing to do, but is only required if we've enabled diagnostics. Extend the session pickle format to make a space for it, so that pickles can be transferred between the logging_enabled branch and the master branch without loss of information. Also add some tests for session pickling which explicitly check that we can unpickle both formats of pickle. --- include/olm/ratchet.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/olm') diff --git a/include/olm/ratchet.hh b/include/olm/ratchet.hh index aaa3579..13f7097 100644 --- a/include/olm/ratchet.hh +++ b/include/olm/ratchet.hh @@ -169,7 +169,8 @@ std::uint8_t * pickle( std::uint8_t const * unpickle( std::uint8_t const * pos, std::uint8_t const * end, - Ratchet & value + Ratchet & value, + bool includes_chain_index ); -- cgit v1.2.3