svnno****@sourc*****
svnno****@sourc*****
Thu Feb 12 15:42:49 JST 2009
Revision: 3650 http://svn.sourceforge.jp/view?root=kazehakase&view=rev&rev=3650 Author: ikezoe Date: 2009-02-12 15:42:49 +0900 (Thu, 12 Feb 2009) Log Message: ----------- * configure.ac: Require GTK+-2.14.0. * src/net/kz-http.c, src/kz-popup-preview.c: Use GCheckSum insted of EggMD5. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/src/kz-popup-preview.c kazehakase/trunk/src/net/kz-http.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2009-02-12 06:37:05 UTC (rev 3649) +++ kazehakase/trunk/ChangeLog 2009-02-12 06:42:49 UTC (rev 3650) @@ -28,6 +28,9 @@ * src/sidebar/kz-thumbnails-sidebar.c, src/bookmarks/kz-bookmark-menu-item-list.c, src/actions/kz-smart-bookmark-action.c: Use KzBookmarkFolder methods. + * configure.ac: Require GTK+-2.14.0. + * src/net/kz-http.c, src/kz-popup-preview.c: Use GCheckSum insted of + EggMD5. 2009-02-11 Hiroyuki Ikezoe <poinc****@ikezo*****> Modified: kazehakase/trunk/src/kz-popup-preview.c =================================================================== --- kazehakase/trunk/src/kz-popup-preview.c 2009-02-12 06:37:05 UTC (rev 3649) +++ kazehakase/trunk/src/kz-popup-preview.c 2009-02-12 06:42:49 UTC (rev 3650) @@ -36,7 +36,6 @@ #include "kz-thumbnail.h" #include "glib-utils.h" #include "utils.h" -#include "eggmd5.h" #include "egg-pixbuf-thumbnail.h" typedef struct _KzPopupPreviewPriv KzPopupPreviewPriv; @@ -493,7 +492,7 @@ if (uri == NULL) return NULL; - tmp_name = egg_str_get_md5_str(uri); + tmp_name = g_compute_checksum_for_string(G_CHECKSUM_MD5, uri, -1); image_name = g_strconcat(tmp_name, ".png", NULL); popup_file_name = g_build_filename(KZ_GET_POPUP_DIR, image_name, Modified: kazehakase/trunk/src/net/kz-http.c =================================================================== --- kazehakase/trunk/src/net/kz-http.c 2009-02-12 06:37:05 UTC (rev 3649) +++ kazehakase/trunk/src/net/kz-http.c 2009-02-12 06:42:49 UTC (rev 3650) @@ -47,7 +47,6 @@ #include "kz-profile.h" #include "kz-proxy-item.h" #include "kz-prompt-dialog.h" -#include "eggmd5.h" #define BUFFER_SIZE 256 @@ -1424,7 +1423,7 @@ { gchar *tmp, *tmp_md5; tmp = g_strdup_printf("%s:%s:%s", user, ap->realm, pass); - tmp_md5 = egg_str_get_md5_str(tmp); + tmp_md5 = g_compute_checksum_for_string(G_CHECKSUM_MD5, tmp, -1); a1 = g_strdup_printf("%s:%s:%s", tmp_md5, ap->nonce, cnonce); g_free(tmp); g_free(tmp_md5); @@ -1437,7 +1436,8 @@ if (ap->qop && g_ascii_strncasecmp(ap->qop, "auth-int", 8) == 0) { gchar *ent_md5; - ent_md5 = egg_str_get_md5_str(priv->post_data); + ent_md5 = g_compute_checksum_for_string(G_CHECKSUM_MD5, + priv->post_data, -1); a2 = g_strdup_printf("%s:%s:%s", method, priv->path, ent_md5); g_free(ent_md5); @@ -1446,8 +1446,8 @@ { a2 = g_strdup_printf("%s:%s", method, priv->path); } - a1_md5 = egg_str_get_md5_str(a1); - a2_md5 = egg_str_get_md5_str(a2); + a1_md5 = g_compute_checksum_for_string(G_CHECKSUM_MD5, a1, -1); + a2_md5 = g_compute_checksum_for_string(G_CHECKSUM_MD5, a2, -1); if (ap->qop) { @@ -1466,7 +1466,7 @@ ap->nonce, a2_md5); } - response_md5 = egg_str_get_md5_str(response); + response_md5 = g_compute_checksum_for_string(G_CHECKSUM_MD5, response, -1); ap->string = g_strconcat("Digest username=\"", user, "\",", " realm=\"", ap->realm, "\",", " nonce=\"", ap->nonce, "\",",