1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-10-27 20:30:13 -04:00

SHA1 now generated correctly when data form included in caps

fixes #149
This commit is contained in:
James Booth 2013-02-05 20:36:21 +00:00
parent 8230275f03
commit 523e4be1b8
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -28,3 +28,4 @@ stamp-h1
valgrind.out
core
error.txt
error2.txt

View File

@ -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;