From 8a5932b251e2af59680725f16acee9c3736b3c76 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sun, 20 Oct 2019 00:01:19 +0200 Subject: [PATCH] Rename _calculate_identifier to _compute_identifier --- src/xmpp/connection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index a21a38b9..63cd8211 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -91,7 +91,7 @@ static int _connection_certfail_cb(xmpp_tlscert_t *xmpptlscert, const char *cons static void _random_bytes_init(void); static void _random_bytes_close(void); -static void _calculate_identifier(const char *barejid); +static void _compute_identifier(const char *barejid); void connection_init(void) @@ -145,7 +145,7 @@ connection_connect(const char *const jid, const char *const passwd, const char * return conn.conn_status; } - _calculate_identifier(jidp->barejid); + _compute_identifier(jidp->barejid); jid_destroy(jidp); log_info("Connecting as %s", jid); @@ -671,7 +671,7 @@ static void _random_bytes_close(void) g_free(profanity_instance_id); } -static void _calculate_identifier(const char *barejid) +static void _compute_identifier(const char *barejid) { gchar *hmac = g_compute_hmac_for_string(G_CHECKSUM_SHA256, (guchar*)profanity_instance_id, strlen(profanity_instance_id),