1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00
profanity/src/omemo/omemo.h

19 lines
671 B
C
Raw Normal View History

#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;
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);
void omemo_prekeys(GList ** const prekeys, GList ** const ids, GList ** const lengths);
void omemo_set_device_list(const char *const jid, GList * device_list);
2019-02-21 13:04:01 -05:00
void omemo_start_session(ProfAccount *account, char *barejid);
gboolean omemo_loaded(void);