aboutsummaryrefslogtreecommitdiff
path: root/include/olm
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-08 14:57:55 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-08 14:57:55 +0100
commitdceae043b30efb672acf41b21fbb335a6710b3c1 (patch)
tree028a711eae2af659e7bc24057916f86b9a5fb021 /include/olm
parent5291ec78b5e0187aa873f911b9d907aa0139def5 (diff)
Remove the RemoteKey type since it wasn't being used
Diffstat (limited to 'include/olm')
-rw-r--r--include/olm/session.hh11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/olm/session.hh b/include/olm/session.hh
index 4d674e5..1c04108 100644
--- a/include/olm/session.hh
+++ b/include/olm/session.hh
@@ -21,18 +21,11 @@ namespace olm {
class Account;
-struct RemoteKey {
- std::uint32_t id;
- Curve25519PublicKey key;
-};
-
-
enum struct MessageType {
PRE_KEY = 0,
MESSAGE = 1,
};
-
struct Session {
Session();
@@ -42,7 +35,7 @@ struct Session {
bool received_message;
- RemoteKey alice_identity_key;
+ Curve25519PublicKey alice_identity_key;
Curve25519PublicKey alice_base_key;
Curve25519PublicKey bob_one_time_key;
std::uint32_t bob_one_time_key_id;
@@ -52,7 +45,7 @@ struct Session {
std::size_t new_outbound_session(
Account const & local_account,
Curve25519PublicKey const & identity_key,
- RemoteKey const & one_time_key,
+ Curve25519PublicKey const & one_time_key,
std::uint8_t const * random, std::size_t random_length
);