changeset 27915:a40e0b43f57f

This is annoying, but am I actually missing anything?
author Paul Aurich <paul@darkrain42.org>
date Fri, 14 Aug 2009 05:20:24 +0000
parents 2b9da4c0c47b
children 1d2d1730a0b3
files libpurple/protocols/jabber/caps.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.c	Fri Aug 14 01:34:27 2009 +0000
+++ b/libpurple/protocols/jabber/caps.c	Fri Aug 14 05:20:24 2009 +0000
@@ -456,6 +456,11 @@
 	/* Only validate if these are v1.5 capabilities */
 	if (userdata->hash) {
 		gchar *hash = NULL;
+		/*
+		 * TODO: If you add *any* hash here, make sure the checksum buffer
+		 * size in jabber_caps_calculate_hash is large enough. The cipher API
+		 * doesn't seem to offer a "Get the hash size" function(?).
+		 */
 		if (!strcmp(userdata->hash, "sha-1")) {
 			hash = jabber_caps_calculate_hash(info, "sha1");
 		} else if (!strcmp(userdata->hash, "md5")) {