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/olm.hh | |
parent | 89d9b972a6d629648d18f4227a08596c65c3894d (diff) |
Add method getting a session id. Update the python and javascript bindings
Diffstat (limited to 'include/olm/olm.hh')
-rw-r--r-- | include/olm/olm.hh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/olm/olm.hh b/include/olm/olm.hh index f08fb9f..a5a50de 100644 --- a/include/olm/olm.hh +++ b/include/olm/olm.hh @@ -257,6 +257,19 @@ size_t olm_create_inbound_session_from( void * one_time_key_message, size_t message_length ); +/** The length of the buffer needed to return the id for this session. */ +size_t olm_session_id_length( + OlmSession * session +); + +/** An identifier for this session. Will be the same for both ends of the + * conversation. If the id buffer is too small then olm_session_last_error() + * will be "OUTPUT_BUFFER_TOO_SMALL". */ +size_t olm_session_id( + OlmSession * session, + void * id, size_t id_length +); + /** Checks if the PRE_KEY message is for this in-bound session. This can happen * if multiple messages are sent to this account before this account sends a * message in reply. Returns olm_error() on failure. If the base64 |