diff libpurple/protocols/jabber/caps.h @ 25024:fd19927e2b64

* support for calculating both hashes, sha-1 and md5 * preparing merge of two data structres; JabberCapsClientInfo and new one
author Tobias Markmann <tfar@soc.pidgin.im>
date Thu, 03 Jul 2008 22:30:44 +0000
parents 4c97156431b4
children a85f9b85a7fb
line wrap: on
line diff
--- a/libpurple/protocols/jabber/caps.h	Wed Jul 02 21:27:51 2008 +0000
+++ b/libpurple/protocols/jabber/caps.h	Thu Jul 03 22:30:44 2008 +0000
@@ -64,10 +64,11 @@
  *	XEP-0115 Version 1.5.
  *
  *	@param info A JabberCapsClientInfo pointer.
+ *	@param hash Hash cipher to be used. Either sha-1 or md5.
  *	@return		The base64 encoded SHA-1 hash; needs to be freed if not needed 
  *				any furthermore. 
  */
-gchar *jabber_caps_calcualte_hash(JabberCapsClientInfo *info);
+gchar *jabber_caps_calcualte_hash(JabberCapsClientInfo *info, const char *hash);
 
 void jabber_caps_calculate_own_hash();