From 5ad929104e4db4b788c3792bca3e7d02283dc77e Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Fri, 10 Jul 2015 18:00:18 +0100 Subject: Version the pickled objects and check for errors when unpickling them --- include/olm/error.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/olm') diff --git a/include/olm/error.hh b/include/olm/error.hh index 960de72..b0d3764 100644 --- a/include/olm/error.hh +++ b/include/olm/error.hh @@ -27,6 +27,8 @@ enum struct ErrorCode { BAD_MESSAGE_KEY_ID = 6, /*!< The message references an unknown key id */ INVALID_BASE64 = 7, /*!< The input base64 was invalid */ BAD_ACCOUNT_KEY = 8, /*!< The supplied account key is invalid */ + UNKNOWN_PICKLE_VERSION = 9, /*!< The pickled object is too new */ + CORRUPTED_PICKLE = 10, /*!< The pickled object couldn't be decoded */ }; } // namespace olm -- cgit v1.2.3