[Telepathy-commits] [telepathy-gabble/master] Better comment: the hash algorithm is indicated in the original presence stanza
Alban Crequy
alban.crequy at collabora.co.uk
Tue Aug 19 10:52:48 PDT 2008
20080528102633-a41c0-7a27b6c6ed9020167668f69a46f7e0ee0b9cec30.gz
---
src/presence-cache.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/presence-cache.c b/src/presence-cache.c
index 5ca8ab4..266d9c6 100644
--- a/src/presence-cache.c
+++ b/src/presence-cache.c
@@ -825,9 +825,11 @@ _caps_disco_cb (GabbleDisco *disco,
goto OUT;
}
- /* Only 'sha-1' is mandatory to implement by XEP-0115. If the received
- * discovery response uses another hash algorithm, don't check the hash and
- * fallback to the old method. */
+ /* Only 'sha-1' is mandatory to implement by XEP-0115. If the remote contact
+ * uses another hash algorithm, don't check the hash and fallback to the old
+ * method. The hash method is not included in the discovery request nor
+ * response but we saved it in disco_pending when we received the presence
+ * stanza. */
if (!tp_strdiff (waiter_self->hash, "sha-1"))
{
const gchar *computed_hash;
--
1.5.6.3
More information about the Telepathy-commits
mailing list