mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
SHA1 now generated correctly when data form included in caps
fixes #149
This commit is contained in:
parent
8230275f03
commit
523e4be1b8
1
.gitignore
vendored
1
.gitignore
vendored
@ -28,3 +28,4 @@ stamp-h1
|
||||
valgrind.out
|
||||
core
|
||||
error.txt
|
||||
error2.txt
|
||||
|
@ -33,6 +33,8 @@
|
||||
#include "xmpp/xmpp.h"
|
||||
#include "xmpp/stanza.h"
|
||||
|
||||
#include "ui/ui.h"
|
||||
|
||||
static GHashTable *capabilities;
|
||||
|
||||
static void _caps_destroy(Capabilities *caps);
|
||||
@ -147,6 +149,7 @@ caps_create_sha1_str(xmpp_stanza_t * const query)
|
||||
while (curr_field != NULL) {
|
||||
field = curr_field->data;
|
||||
g_string_append(s, strdup(field->var));
|
||||
g_string_append(s, "<");
|
||||
GSList *curr_value = field->values;
|
||||
while (curr_value != NULL) {
|
||||
g_string_append(s, strdup(curr_value->data));
|
||||
@ -159,6 +162,8 @@ caps_create_sha1_str(xmpp_stanza_t * const query)
|
||||
curr = g_slist_next(curr);
|
||||
}
|
||||
|
||||
cons_debug("CAPS STR = %s", s->str);
|
||||
|
||||
EVP_MD_CTX mdctx;
|
||||
const EVP_MD *md;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user