2019-03-26 18:19:53 -04:00
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
#include "config/account.h"
|
|
|
|
#include "ui/ui.h"
|
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
void
|
|
|
|
omemo_init(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void
|
|
|
|
omemo_close(void)
|
|
|
|
{
|
|
|
|
}
|
2019-03-26 18:19:53 -04:00
|
|
|
|
|
|
|
char*
|
2020-07-07 08:18:57 -04:00
|
|
|
omemo_fingerprint_autocomplete(const char* const search_str, gboolean previous)
|
2019-03-26 18:19:53 -04:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
void
|
|
|
|
omemo_fingerprint_autocomplete_reset(void)
|
|
|
|
{
|
|
|
|
}
|
2019-03-26 18:19:53 -04:00
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
char*
|
|
|
|
omemo_format_fingerprint(const char* const fingerprint)
|
2019-03-26 18:19:53 -04:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
void
|
|
|
|
omemo_generate_crypto_materials(ProfAccount* account)
|
|
|
|
{
|
|
|
|
}
|
2019-03-26 18:19:53 -04:00
|
|
|
|
2019-04-09 01:02:35 -04:00
|
|
|
gboolean
|
2020-07-07 08:18:57 -04:00
|
|
|
omemo_automatic_start(const char* const jid)
|
2019-04-09 01:02:35 -04:00
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2019-03-26 18:19:53 -04:00
|
|
|
gboolean
|
2020-07-07 08:18:57 -04:00
|
|
|
omemo_is_trusted_identity(const char* const jid, const char* const fingerprint)
|
2019-03-26 18:19:53 -04:00
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
GList*
|
|
|
|
omemo_known_device_identities(const char* const jid)
|
2019-03-26 18:19:53 -04:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
omemo_loaded(void)
|
|
|
|
{
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
void
|
|
|
|
omemo_on_connect(ProfAccount* account)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void
|
|
|
|
omemo_on_disconnect(void)
|
|
|
|
{
|
|
|
|
}
|
2019-03-26 18:19:53 -04:00
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
char*
|
|
|
|
omemo_on_message_send(ProfWin* win, const char* const message, gboolean request_receipt, gboolean muc)
|
2019-03-26 18:19:53 -04:00
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2020-07-07 08:18:57 -04:00
|
|
|
char*
|
2019-03-26 18:19:53 -04:00
|
|
|
omemo_own_fingerprint(gboolean formatted)
|
|
|
|
{
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
2020-07-20 07:01:05 -04:00
|
|
|
void
|
|
|
|
omemo_start_muc_sessions(const char* const roomjid)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void
|
|
|
|
omemo_start_session(const char* const barejid)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void
|
|
|
|
omemo_trust(const char* const jid, const char* const fingerprint_formatted)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void
|
|
|
|
omemo_untrust(const char* const jid, const char* const fingerprint_formatted)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void
|
|
|
|
omemo_devicelist_publish(GList* device_list)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void
|
|
|
|
omemo_publish_crypto_materials(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
void
|
|
|
|
omemo_start_sessions(void)
|
|
|
|
{
|
|
|
|
}
|
2020-06-28 09:16:03 -04:00
|
|
|
|
2020-07-20 07:01:05 -04:00
|
|
|
char*
|
|
|
|
omemo_encrypt_file(FILE* in, FILE* out, off_t file_size, int* gcry_res)
|
|
|
|
{
|
2020-06-28 09:16:03 -04:00
|
|
|
return NULL;
|
|
|
|
};
|
2020-07-20 07:01:05 -04:00
|
|
|
void omemo_free(void* a){};
|
2021-05-28 11:57:42 -04:00
|
|
|
|
|
|
|
uint32_t
|
|
|
|
omemo_device_id() {
|
|
|
|
return 123;
|
|
|
|
}
|