diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-07-16 11:45:20 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-07-16 11:45:20 +0100 |
commit | 3468886e27c54690cc484662ea656f021997a9c7 (patch) | |
tree | 0e0c059c7963505520304c8c1fd7cc851f1ee6ca /include/olm/session.hh | |
parent | 89d9b972a6d629648d18f4227a08596c65c3894d (diff) |
Add method getting a session id. Update the python and javascript bindings
Diffstat (limited to 'include/olm/session.hh')
-rw-r--r-- | include/olm/session.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/olm/session.hh b/include/olm/session.hh index b70ce6a..993a8da 100644 --- a/include/olm/session.hh +++ b/include/olm/session.hh @@ -54,6 +54,12 @@ struct Session { std::uint8_t const * one_time_key_message, std::size_t message_length ); + std::size_t session_id_length(); + + std::size_t session_id( + std::uint8_t * id, std::size_t id_length + ); + bool matches_inbound_session( Curve25519PublicKey const * their_identity_key, std::uint8_t const * one_time_key_message, std::size_t message_length |