[Telepathy-commits] [telepathy-salut/master] salut-caps-hash: use glib's base64 implementation instead of our own

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Thu Feb 26 11:20:20 PST 2009


---
 src/salut-caps-hash.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/salut-caps-hash.c b/src/salut-caps-hash.c
index a1cfe21..f0aca1f 100644
--- a/src/salut-caps-hash.c
+++ b/src/salut-caps-hash.c
@@ -31,7 +31,6 @@
 
 #define DEBUG_FLAG SALUT_DEBUG_PRESENCE
 
-#include "base64.h"
 #include "debug.h"
 #include "salut-capabilities.h"
 #include "salut-caps-hash.h"
@@ -202,7 +201,7 @@ caps_hash_compute (
   sha1_bin (s->str, s->len, (guchar *) sha1);
   g_string_free (s, TRUE);
 
-  encoded = base64_encode (SHA1_HASH_SIZE, sha1, FALSE);
+  encoded = g_base64_encode ((guchar *) sha1, SHA1_HASH_SIZE);
 
   return encoded;
 }
-- 
1.5.6.5




More information about the telepathy-commits mailing list