aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-01-03 04:45:42 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-01-03 04:45:42 +0800
commitae2d0ca936f9f8995d92bf9553a7750a168a4a95 (patch)
tree10f890974e2660b792b73e946f256cd6db8559d5 /e-util
parent57a95b0977bdab7030a06090a8ac33d38ce6f4e5 (diff)
downloadgsoc2013-evolution-ae2d0ca936f9f8995d92bf9553a7750a168a4a95.tar.gz
gsoc2013-evolution-ae2d0ca936f9f8995d92bf9553a7750a168a4a95.tar.zst
gsoc2013-evolution-ae2d0ca936f9f8995d92bf9553a7750a168a4a95.zip
Move the struct into md5-utils.c - this is a kludgey hack around the fact
2002-01-02 Jeffrey Stedfast <fejj@ximian.com> * md5-utils.h: Move the struct into md5-utils.c - this is a kludgey hack around the fact that NSS also defines MD5Context. Besides, this should be a private struct anyway. svn path=/trunk/; revision=15227
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog6
-rw-r--r--e-util/md5-utils.c8
-rw-r--r--e-util/md5-utils.h7
3 files changed, 15 insertions, 6 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 2bcb5f8820..69b4d4d02f 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-02 Jeffrey Stedfast <fejj@ximian.com>
+
+ * md5-utils.h: Move the struct into md5-utils.c - this is a
+ kludgey hack around the fact that NSS also defines
+ MD5Context. Besides, this should be a private struct anyway.
+
2002-01-02 JP Rosevear <jpr@ximian.com>
* e-dialog-utils.c (e_gnome_dialog_set_parent): util function
diff --git a/e-util/md5-utils.c b/e-util/md5-utils.c
index 368a3c1828..9450a3244b 100644
--- a/e-util/md5-utils.c
+++ b/e-util/md5-utils.c
@@ -27,6 +27,14 @@
#include <string.h>
#include "md5-utils.h"
+struct _MD5Context {
+ guint32 buf[4];
+ guint32 bits[2];
+ guchar in[64];
+ gint doByteReverse;
+};
+
+
static void md5_transform (guint32 buf[4], const guint32 in[16]);
static gint _ie = 0x44332211;
diff --git a/e-util/md5-utils.h b/e-util/md5-utils.h
index 08e014e86e..5a7be8a4d2 100644
--- a/e-util/md5-utils.h
+++ b/e-util/md5-utils.h
@@ -28,13 +28,8 @@
#include <glib.h>
-typedef struct {
- guint32 buf[4];
- guint32 bits[2];
- guchar in[64];
- gint doByteReverse;
-} MD5Context ;
+typedef struct _MD5Context MD5Context;
void md5_get_digest (const gchar *buffer, gint buffer_size, guchar digest[16]);