summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_omemo.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_omemo.h')
-rw-r--r--protocols/JabberG/src/jabber_omemo.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_omemo.h b/protocols/JabberG/src/jabber_omemo.h
index 94b9fd8dbb..8bcc5cea93 100644
--- a/protocols/JabberG/src/jabber_omemo.h
+++ b/protocols/JabberG/src/jabber_omemo.h
@@ -36,6 +36,7 @@ namespace omemo
const char DevicePrefix[] = "OmemoDeviceId";
CMStringW FormatFingerprint(const char* pszHexString);
+ CMStringA hex_string(const uint8_t* pData, const size_t length);
struct omemo_device;
@@ -47,7 +48,7 @@ namespace omemo
void init();
void deinit();
bool IsFirstRun();
- unsigned long GetOwnDeviceId();
+ int GetOwnDeviceId();
void RefreshDevice();
omemo_device* create_device();
bool create_session_store(MCONTACT hContact, const char *device_id);
@@ -62,6 +63,10 @@ namespace omemo
std::list<struct incoming_message> incoming_messages;
std::list<struct outgoing_message> outgoing_messages;
+ int dbGetDeviceId(MCONTACT hContact, uint32_t number);
+ CMStringA dbGetSuffix(MCONTACT hContact, int device_id);
+ CMStringA dbGetSuffix(char* jid, int device_id);
+
TiXmlDocument doc;
private: