mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 09:58:07 +02:00
2005-09-12 Christopher Aillon <caillon@redhat.com>
* 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
This commit is contained in:
parent
e4a3f12475
commit
55e4be5009
2 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
2005-09-12 Christopher Aillon <caillon@redhat.com>
|
2005-09-12 Christopher Aillon <caillon@redhat.com>
|
||||||
|
|
||||||
|
* src/gnome-keyring-md5.c: Updated code from gnome-keyring
|
||||||
|
|
||||||
* gnome/applet/applet-dbus-devices.c:
|
* gnome/applet/applet-dbus-devices.c:
|
||||||
* gnome/applet/applet.c:
|
* gnome/applet/applet.c:
|
||||||
* gnome/applet/nm-device.c:
|
* gnome/applet/nm-device.c:
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ gnome_keyring_md5_string (const char *string, unsigned char digest[16])
|
||||||
struct GnomeKeyringMD5Context md5_context;
|
struct GnomeKeyringMD5Context md5_context;
|
||||||
|
|
||||||
gnome_keyring_md5_init (&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);
|
gnome_keyring_md5_final (digest, &md5_context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,7 +58,7 @@ char *
|
||||||
gnome_keyring_md5_digest_to_ascii (unsigned char digest[16])
|
gnome_keyring_md5_digest_to_ascii (unsigned char digest[16])
|
||||||
{
|
{
|
||||||
static char hex_digits[] = "0123456789abcdef";
|
static char hex_digits[] = "0123456789abcdef";
|
||||||
unsigned char *res;
|
char *res;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
res = g_malloc (33);
|
res = g_malloc (33);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue