2019-02-22 13:17:26 -05:00
|
|
|
#include <glib.h>
|
|
|
|
|
2019-02-19 12:38:15 -05:00
|
|
|
#include "config/account.h"
|
|
|
|
|
2019-02-19 12:58:40 -05:00
|
|
|
typedef struct omemo_context_t omemo_context;
|
|
|
|
|
2019-02-19 13:23:50 -05:00
|
|
|
void omemo_init(void);
|
|
|
|
void omemo_generate_crypto_materials(ProfAccount *account);
|
2019-02-21 13:04:01 -05:00
|
|
|
|
|
|
|
uint32_t omemo_device_id(void);
|
|
|
|
void omemo_identity_key(unsigned char **output, size_t *length);
|
|
|
|
void omemo_signed_prekey(unsigned char **output, size_t *length);
|
|
|
|
void omemo_signed_prekey_signature(unsigned char **output, size_t *length);
|
2019-02-25 11:27:11 -05:00
|
|
|
void omemo_prekeys(GList **prekeys, GList **ids, GList **lengths);
|
2019-02-24 23:24:03 -05:00
|
|
|
void omemo_set_device_list(const char *const jid, GList * device_list);
|
2019-02-21 13:04:01 -05:00
|
|
|
|
2019-02-25 11:27:11 -05:00
|
|
|
void omemo_start_session(const char *const barejid);
|
2019-02-26 12:23:08 -05:00
|
|
|
void omemo_start_device_session(const char *const jid, uint32_t device_id, uint32_t prekey_id, const unsigned char *const prekey, size_t prekey_len, uint32_t signed_prekey_id, const unsigned char *const signed_prekey, size_t signed_prekey_len, const unsigned char *const signature, size_t signature_len, const unsigned char *const identity_key, size_t identity_key_len);
|
2019-02-25 11:27:11 -05:00
|
|
|
|
2019-02-21 13:04:01 -05:00
|
|
|
gboolean omemo_loaded(void);
|