aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-06-15 17:47:22 +0100
committerMark Haines <mark.haines@matrix.org>2015-06-15 17:47:22 +0100
commit026e4394bb333e978a37f5821f0a1c3dca6acb1d (patch)
treea06da10956a3757f6f0da3e7126777c1c2da81ea /include
parent6fe3b7eb73fb11e1cba27b28add5b14430b66259 (diff)
Implement creating a new account
Diffstat (limited to 'include')
-rw-r--r--include/axolotl/error.hh2
-rw-r--r--include/axolotl/session.hh2
2 files changed, 3 insertions, 1 deletions
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,
};