mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Rename _calculate_identifier to _compute_identifier
This commit is contained in:
parent
db4b55eee0
commit
8a5932b251
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user