about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-02-05 20:36:21 +0000
committerJames Booth <boothj5@gmail.com>2013-02-05 20:36:21 +0000
commit523e4be1b8c011171f4c37f199bf6e7863fc6f49 (patch)
tree1ef93ae5226d674b4387da08540c308d5be78fcd /src
parent8230275f03c2719012977e679aba7e60be277b15 (diff)
downloadprofani-tty-523e4be1b8c011171f4c37f199bf6e7863fc6f49.tar.gz
SHA1 now generated correctly when data form included in caps
fixes #149
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/capabilities.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmpp/capabilities.c b/src/xmpp/capabilities.c
index 30844afc..c73c7d2a 100644
--- a/src/xmpp/capabilities.c
+++ b/src/xmpp/capabilities.c
@@ -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;