Files
cproof/tests/unittests/otr/stub_otr.c
jabber.developer2 f9e184eda7
All checks were successful
CI Code / Check spelling (pull_request) Successful in 18s
CI Code / Check coding style (pull_request) Successful in 30s
CI Code / Linux (ubuntu) (pull_request) Successful in 4m51s
CI Code / Linux (debian) (pull_request) Successful in 6m59s
CI Code / Linux (arch) (pull_request) Successful in 10m12s
CI Code / Code Coverage (pull_request) Successful in 6m44s
revert: restore pre-upstream-merge baseline (tree of 3b673150b)
Roll the tree back to the pre-merge tip 3b673150b, undoing the upstream sync merge 72f4f186d (303 files) and the 13 post-merge commits layered on top of it.

Purpose: restore the last pre-sync baseline so the reported OMEMO/OTR encryption regressions can be reproduced against a known-good state and the upstream sync ruled in or out as the cause. Nothing is dropped from history; the merge and every post-merge commit remain reachable and can be cherry-picked back selectively.

Baseline:     3b673150b chore(chatlog): disable background message file logging (stage 1)

Undoes merge: 72f4f186d merge: sync upstream profanity-im/profanity
2026-06-29 12:17:01 +03:00

158 lines
2.2 KiB
C

#include <libotr/proto.h>
#include <libotr/message.h>
#include <glib.h>
#include "prof_cmocka.h"
#include "config/account.h"
#include "otr/otr.h"
OtrlUserState
otr_userstate(void)
{
return NULL;
}
OtrlMessageAppOps*
otr_messageops(void)
{
return NULL;
}
GHashTable*
otr_smpinitators(void)
{
return NULL;
}
void
otr_init(void)
{
}
char*
otr_libotr_version(void)
{
return mock_ptr_type(char*);
}
char*
otr_start_query(void)
{
return mock_ptr_type(char*);
}
void
otr_poll(void)
{
}
void
otr_on_connect(ProfAccount* account)
{
}
char*
otr_on_message_recv(const char* const barejid, const char* const resource, const char* const message, gboolean* was_decrypted)
{
return NULL;
}
gboolean
otr_on_message_send(ProfChatWin* chatwin, const char* const message, gboolean request_receipt, const char* const replace_id)
{
return FALSE;
}
void
otr_keygen(ProfAccount* account)
{
check_expected(account);
}
gboolean
otr_key_loaded(void)
{
return mock_type(gboolean);
}
char*
otr_tag_message(const char* const msg)
{
return NULL;
}
gboolean
otr_is_secure(const char* const recipient)
{
return FALSE;
}
gboolean
otr_is_trusted(const char* const recipient)
{
return FALSE;
}
void
otr_trust(const char* const recipient)
{
}
void
otr_untrust(const char* const recipient)
{
}
void
otr_smp_secret(const char* const recipient, const char* secret)
{
}
void
otr_smp_question(const char* const recipient, const char* question, const char* answer)
{
}
void
otr_smp_answer(const char* const recipient, const char* answer)
{
}
void
otr_end_session(const char* const recipient)
{
}
char*
otr_get_my_fingerprint(void)
{
return mock_ptr_type(char*);
}
char*
otr_get_their_fingerprint(const char* const recipient)
{
check_expected(recipient);
return mock_ptr_type(char*);
}
char*
otr_encrypt_message(const char* const to, const char* const message)
{
return NULL;
}
char*
otr_decrypt_message(const char* const from, const char* const message,
gboolean* was_decrypted)
{
return NULL;
}
void
otr_free_message(char* message)
{
}
prof_otrpolicy_t
otr_get_policy(const char* const recipient)
{
return PROF_OTRPOLICY_MANUAL;
}