mirror of
https://github.com/profanity-im/profanity.git
synced 2025-07-26 12:14:28 -04: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
|
valgrind.out
|
||||||
core
|
core
|
||||||
error.txt
|
error.txt
|
||||||
|
error2.txt
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
#include "xmpp/xmpp.h"
|
#include "xmpp/xmpp.h"
|
||||||
#include "xmpp/stanza.h"
|
#include "xmpp/stanza.h"
|
||||||
|
|
||||||
|
#include "ui/ui.h"
|
||||||
|
|
||||||
static GHashTable *capabilities;
|
static GHashTable *capabilities;
|
||||||
|
|
||||||
static void _caps_destroy(Capabilities *caps);
|
static void _caps_destroy(Capabilities *caps);
|
||||||
@ -147,6 +149,7 @@ caps_create_sha1_str(xmpp_stanza_t * const query)
|
|||||||
while (curr_field != NULL) {
|
while (curr_field != NULL) {
|
||||||
field = curr_field->data;
|
field = curr_field->data;
|
||||||
g_string_append(s, strdup(field->var));
|
g_string_append(s, strdup(field->var));
|
||||||
|
g_string_append(s, "<");
|
||||||
GSList *curr_value = field->values;
|
GSList *curr_value = field->values;
|
||||||
while (curr_value != NULL) {
|
while (curr_value != NULL) {
|
||||||
g_string_append(s, strdup(curr_value->data));
|
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);
|
curr = g_slist_next(curr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cons_debug("CAPS STR = %s", s->str);
|
||||||
|
|
||||||
EVP_MD_CTX mdctx;
|
EVP_MD_CTX mdctx;
|
||||||
const EVP_MD *md;
|
const EVP_MD *md;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user