1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

ox: prefix function _openpgp_signcrypt with ox_

To make the destinction clearer and easier to search.
This commit is contained in:
Michael Vetter 2022-05-04 14:26:26 +02:00
parent 54b57326b8
commit 1eaa2c1529

View File

@ -91,7 +91,7 @@ static gboolean _handle_jingle_message(xmpp_stanza_t* const stanza);
static gboolean _should_ignore_based_on_silence(xmpp_stanza_t* const stanza); static gboolean _should_ignore_based_on_silence(xmpp_stanza_t* const stanza);
#ifdef HAVE_LIBGPGME #ifdef HAVE_LIBGPGME
static xmpp_stanza_t* _openpgp_signcrypt(xmpp_ctx_t* ctx, const char* const to, const char* const text); static xmpp_stanza_t* _ox_openpgp_signcrypt(xmpp_ctx_t* ctx, const char* const to, const char* const text);
#endif // HAVE_LIBGPGME #endif // HAVE_LIBGPGME
static GHashTable* pubsub_event_handlers; static GHashTable* pubsub_event_handlers;
@ -540,7 +540,7 @@ message_send_chat_ox(const char* const barejid, const char* const msg, gboolean
xmpp_stanza_set_name(openpgp, STANZA_NAME_OPENPGP); xmpp_stanza_set_name(openpgp, STANZA_NAME_OPENPGP);
xmpp_stanza_set_ns(openpgp, STANZA_NS_OPENPGP_0); xmpp_stanza_set_ns(openpgp, STANZA_NS_OPENPGP_0);
xmpp_stanza_t* signcrypt = _openpgp_signcrypt(ctx, barejid, msg); xmpp_stanza_t* signcrypt = _ox_openpgp_signcrypt(ctx, barejid, msg);
char* c; char* c;
size_t s; size_t s;
xmpp_stanza_to_text(signcrypt, &c, &s); xmpp_stanza_to_text(signcrypt, &c, &s);
@ -1610,7 +1610,7 @@ message_is_sent_by_us(const ProfMessage* const message, bool checkOID)
#ifdef HAVE_LIBGPGME #ifdef HAVE_LIBGPGME
static xmpp_stanza_t* static xmpp_stanza_t*
_openpgp_signcrypt(xmpp_ctx_t* ctx, const char* const to, const char* const text) _ox_openpgp_signcrypt(xmpp_ctx_t* ctx, const char* const to, const char* const text)
{ {
time_t now = time(NULL); time_t now = time(NULL);
struct tm* tm = localtime(&now); struct tm* tm = localtime(&now);