Session

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

decrypt
string decrypt(size_t msg_type, string cypher)
Undocumented in source. Be warned that the author may not have intended to support it.
encrypt
string encrypt(string plaintext, size_t msg_type)
Undocumented in source. Be warned that the author may not have intended to support it.
matches_inbound
bool matches_inbound(string one_time_key_msg)
Undocumented in source. Be warned that the author may not have intended to support it.
matches_inbound_from
bool matches_inbound_from(string identity_key, string one_time_key_msg)
Undocumented in source. Be warned that the author may not have intended to support it.
pickle
string pickle(string key)

serialize session data, locked by key

Properties

id
string id [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

create_inbound
Session create_inbound(Account a, string one_time_key_msg)
Undocumented in source. Be warned that the author may not have intended to support it.
create_inbound_from
Session create_inbound_from(Account a, string identity_key, string one_time_key_msg)
Undocumented in source. Be warned that the author may not have intended to support it.
create_outbound
Session create_outbound(Account a, string identity_key, string one_time_key)
Undocumented in source. Be warned that the author may not have intended to support it.
unpickle
Session unpickle(string key, string pickle)

deserialize session data, unlocked by key

Variables

session
OlmSession* session;
Undocumented in source.

Meta