mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Removed redundant function for computing sha1 caps hash
This commit is contained in:
parent
7457864347
commit
7991bc5154
26
src/jabber.c
26
src/jabber.c
@ -185,32 +185,6 @@ jabber_disconnect(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char *
|
|
||||||
jabber_get_local_sha1_caps_str(void)
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
GString *str = g_string_new("");
|
|
||||||
unsigned char hash[SHA_DIGEST_LENGTH];
|
|
||||||
|
|
||||||
g_string_append(str, "client/pc//Profanity ");
|
|
||||||
g_string_append(str, PACKAGE_VERSION);
|
|
||||||
if (strcmp(PACKAGE_STATUS, "development") == 0) {
|
|
||||||
g_string_append(str, "dev");
|
|
||||||
}
|
|
||||||
g_string_append(str, "<");
|
|
||||||
|
|
||||||
SHA1((unsigned char *)str->str, strlen(str->str), hash);
|
|
||||||
|
|
||||||
char *result = g_base64_encode(hash, strlen((char *)hash));
|
|
||||||
|
|
||||||
g_string_free(str, TRUE);
|
|
||||||
|
|
||||||
return result;
|
|
||||||
*/
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
sha1_caps_str(xmpp_stanza_t *query)
|
sha1_caps_str(xmpp_stanza_t *query)
|
||||||
{
|
{
|
||||||
|
@ -83,7 +83,6 @@ char * jabber_get_status(void);
|
|||||||
void jabber_free_resources(void);
|
void jabber_free_resources(void);
|
||||||
void jabber_restart(void);
|
void jabber_restart(void);
|
||||||
void jabber_set_autoping(int seconds);
|
void jabber_set_autoping(int seconds);
|
||||||
char * jabber_get_local_sha1_caps_str(void);
|
|
||||||
char * sha1_caps_str(xmpp_stanza_t *query);
|
char * sha1_caps_str(xmpp_stanza_t *query);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user