You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
969 B
C

// This Source Code Form is subject to the terms of the Mozilla Public
// License, version 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef _WEECHAT_XMPP_OMEMO_H_
#define _WEECHAT_XMPP_OMEMO_H_
3 years ago
extern const char *OMEMO_ADVICE;
4 years ago
struct t_omemo
{
3 years ago
struct signal_context *context;
3 years ago
struct signal_protocol_store_context *store_context;
3 years ago
struct t_omemo_db *db;
4 years ago
3 years ago
struct ratchet_identity_key_pair *identity;
4 years ago
uint32_t device_id;
};
3 years ago
void omemo__init(struct t_gui_buffer *buffer, struct t_omemo **omemo,
3 years ago
const char *account_name);
3 years ago
void omemo__serialize(struct t_omemo *omemo, char **device,
char **identity, size_t *identity_len);
void omemo__deserialize(struct t_omemo *omemo, const char *device,
const char *identity, size_t identity_len);
4 years ago
void omemo__free(struct t_omemo *omemo);
#endif /*WEECHAT_XMPP_OMEMO_H*/