aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-10 18:00:18 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-10 18:00:18 +0100
commit5ad929104e4db4b788c3792bca3e7d02283dc77e (patch)
treece36f53e86e1c4ac654c65ee630d53a4e45a8a56 /include
parentb6e248c9a58cccbcd5dea7bdc8e3cdee4af03722 (diff)
Version the pickled objects and check for errors when unpickling them
Diffstat (limited to 'include')
-rw-r--r--include/olm/error.hh2
1 files changed, 2 insertions, 0 deletions
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