diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_omemo.h')
-rwxr-xr-x | protocols/JabberG/src/jabber_omemo.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_omemo.h b/protocols/JabberG/src/jabber_omemo.h index 1e34873270..645d3c8116 100755 --- a/protocols/JabberG/src/jabber_omemo.h +++ b/protocols/JabberG/src/jabber_omemo.h @@ -23,12 +23,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifndef JABBER_OMEMO_H
#define JABBER_OMEMO_H
+#include <cstddef>
+#include <map>
+#include <list>
+
struct CJabberProto;
struct signal_crypto_provider;
-namespace omemo {
+namespace omemo
+{
struct omemo_device;
- struct omemo_impl {
+
+ struct omemo_impl
+ {
omemo_impl(CJabberProto *p);
~omemo_impl();
@@ -42,11 +49,12 @@ namespace omemo { bool build_session(MCONTACT hContact, const wchar_t *jid, const wchar_t *dev_id, const wchar_t *key_id, const wchar_t *pre_key_public, const wchar_t *signed_pre_key_id,
const wchar_t *signed_pre_key_public, const wchar_t *signed_pre_key_signature, const wchar_t *identity_key);
-
mir_cslockfull *signal_mutex;
- void *sessions_internal;
- void *session_checked;
- void *message_queue_internal;
+ std::map<MCONTACT, std::map<unsigned int, struct omemo_session_jabber_internal_ptrs>> sessions;
+ std::map<MCONTACT, bool> session_checked;
+ std::list<struct incomming_message> incoming_messages;
+ std::list<struct outgoing_message> outgoing_messages;
+
private:
CJabberProto *proto;
mir_cs _signal_cs;
|