[Telepathy-commits] [telepathy-salut/master] SHA-1 code for capabilities hash: Use GChecksum for SHA-1 from src/sha1/sha1-util.[ch]
Alban Crequy
alban.crequy at collabora.co.uk
Thu Feb 26 11:20:14 PST 2009
---
src/salut-caps-hash.c | 14 +-------------
1 files changed, 1 insertions(+), 13 deletions(-)
diff --git a/src/salut-caps-hash.c b/src/salut-caps-hash.c
index 3447936..a1cfe21 100644
--- a/src/salut-caps-hash.c
+++ b/src/salut-caps-hash.c
@@ -36,7 +36,7 @@
#include "salut-capabilities.h"
#include "salut-caps-hash.h"
#include "salut-self.h"
-#include "sha1/sha1.h"
+#include "sha1/sha1-util.h"
typedef struct _DataFormField DataFormField;
@@ -75,18 +75,6 @@ struct _DataformFieldParsingContext {
DataFormField *field;
};
-static void
-sha1_bin (const gchar *bytes,
- guint len,
- guchar out[SHA1_HASH_SIZE])
-{
- SHA1Context sc;
-
- SHA1Init (&sc);
- SHA1Update (&sc, bytes, len);
- SHA1Final (&sc, (uint8_t *) out);
-}
-
static gint
char_cmp (gconstpointer a, gconstpointer b)
{
--
1.5.6.5
More information about the telepathy-commits
mailing list