aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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
);