From 55e4be5009dfd87da8ff09223f196df36513bd4b Mon Sep 17 00:00:00 2001 From: Christopher Aillon Date: Mon, 12 Sep 2005 18:49:08 +0000 Subject: [PATCH] 2005-09-12 Christopher Aillon * src/gnome-keyring-md5.c: Updated code from gnome-keyring git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@961 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 2 ++ src/gnome-keyring-md5.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3007a0f336..006ae6a28e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2005-09-12 Christopher Aillon + * src/gnome-keyring-md5.c: Updated code from gnome-keyring + * gnome/applet/applet-dbus-devices.c: * gnome/applet/applet.c: * gnome/applet/nm-device.c: diff --git a/src/gnome-keyring-md5.c b/src/gnome-keyring-md5.c index 4ea0729c14..0a3dd71dc0 100644 --- a/src/gnome-keyring-md5.c +++ b/src/gnome-keyring-md5.c @@ -29,7 +29,7 @@ gnome_keyring_md5_string (const char *string, unsigned char digest[16]) struct GnomeKeyringMD5Context md5_context; gnome_keyring_md5_init (&md5_context); - gnome_keyring_md5_update (&md5_context, string, strlen (string)); + gnome_keyring_md5_update (&md5_context, (const unsigned char *)string, strlen (string)); gnome_keyring_md5_final (digest, &md5_context); } @@ -58,7 +58,7 @@ char * gnome_keyring_md5_digest_to_ascii (unsigned char digest[16]) { static char hex_digits[] = "0123456789abcdef"; - unsigned char *res; + char *res; int i; res = g_malloc (33);