Commit 6ed8d687 authored by Denis Kasak's avatar Denis Kasak Committed by Hubert Chathi
Browse files

Document olm_create_inbound_session_from properly.

The old docstring was the same as olm_create_inbound_session and didn't
explain the difference between them.
parent 3e6592e4
...@@ -311,14 +311,9 @@ size_t olm_create_inbound_session( ...@@ -311,14 +311,9 @@ size_t olm_create_inbound_session(
void * one_time_key_message, size_t message_length void * one_time_key_message, size_t message_length
); );
/** Create a new in-bound session for sending/receiving messages from an /** Same as olm_create_inbound_session, but ensures that the identity key
* incoming PRE_KEY message. Returns olm_error() on failure. If the base64 * in the pre-key message matches the expected identity key, supplied via the
* couldn't be decoded then olm_session_last_error will be "INVALID_BASE64". * `their_identity_key` parameter. Fails early if there is no match. */
* If the message was for an unsupported protocol version then
* olm_session_last_error() will be "BAD_MESSAGE_VERSION". If the message
* couldn't be decoded then then olm_session_last_error() will be
* "BAD_MESSAGE_FORMAT". If the message refers to an unknown one time
* key then olm_session_last_error() will be "BAD_MESSAGE_KEY_ID". */
size_t olm_create_inbound_session_from( size_t olm_create_inbound_session_from(
OlmSession * session, OlmSession * session,
OlmAccount * account, OlmAccount * account,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment