From 026e4394bb333e978a37f5821f0a1c3dca6acb1d Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 15 Jun 2015 17:47:22 +0100 Subject: Implement creating a new account --- include/axolotl/error.hh | 2 ++ include/axolotl/session.hh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'include/axolotl') diff --git a/include/axolotl/error.hh b/include/axolotl/error.hh index 3bf0e63..b875784 100644 --- a/include/axolotl/error.hh +++ b/include/axolotl/error.hh @@ -11,6 +11,8 @@ enum struct ErrorCode { BAD_MESSAGE_FORMAT = 4, /*!< The message couldn't be decoded */ BAD_MESSAGE_MAC = 5, /*!< The message couldn't be decrypted */ 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 */ }; } // namespace axolotl diff --git a/include/axolotl/session.hh b/include/axolotl/session.hh index 93c0b64..aeaac7d 100644 --- a/include/axolotl/session.hh +++ b/include/axolotl/session.hh @@ -14,7 +14,7 @@ struct RemoteKey { enum struct MessageType { - PRE_KEY_MESSAGE = 0, + PRE_KEY = 0, MESSAGE = 1, }; -- cgit v1.2.3