From 6ecea67718803e96e00a18f97ae8abc83ecaa1c2 Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Fri, 12 Jun 2015 14:09:41 +0100 Subject: Implement the session key exchange --- include/axolotl/account.hh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/axolotl/account.hh') diff --git a/include/axolotl/account.hh b/include/axolotl/account.hh index 5edb799..dd9c819 100644 --- a/include/axolotl/account.hh +++ b/include/axolotl/account.hh @@ -2,6 +2,8 @@ #define AXOLOTL_ACCOUNT_HH_ #include "axolotl/list.hh" +#include "axolotl/crypto.hh" +#include "axolotl/error.hh" #include @@ -25,16 +27,21 @@ struct Account { LocalKey identity_key; LocalKey last_resort_one_time_key; List one_time_keys; + ErrorCode last_error; /** Number of random bytes needed to create a new account */ std::size_t new_account_random_length(); /** Create a new account. Returns NOT_ENOUGH_RANDOM if the number of random * bytes is too small. */ - ErrorCode new_account( + std::size_t new_account( uint8_t const * random, std::size_t random_length ); + LocalKey const * lookup_key( + std::uint32_t id + ); + /** The number of bytes needed to persist this account. */ std::size_t pickle_length(); -- cgit v1.2.3