Enlightenment CVS committal
Author : xcomputerman
Project : e17
Module : apps/entrance
Dir : e17/apps/entrance/src/daemon
Modified Files:
auth.c md5.c md5.h
Log Message:
Begone, little critter
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/daemon/auth.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- auth.c 23 Mar 2004 00:29:43 -0000 1.6
+++ auth.c 23 Mar 2004 01:31:59 -0000 1.7
@@ -24,7 +24,7 @@
char *cookie;
Entranced_MD5_Context *ctx = NULL;
- entranced_md5_init(ctx);
+ entranced_md5_init(&ctx);
ctime = ecore_time_get();
entranced_md5_update(ctx, (unsigned char *) &ctime, sizeof(ctime));
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/daemon/md5.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- md5.c 1 Jan 2004 07:48:54 -0000 1.1
+++ md5.c 23 Mar 2004 01:31:59 -0000 1.2
@@ -25,18 +25,18 @@
* Start MD5 accumulation. Set bit count to 0 and buffer to mysterious
* initialization constants.
*/
-void entranced_md5_init(Entranced_MD5_Context *ctx)
+void entranced_md5_init(Entranced_MD5_Context **ctx)
{
- if (!ctx)
- ctx = malloc(sizeof(Entranced_MD5_Context));
+ if (!(*ctx))
+ *ctx = malloc(sizeof(Entranced_MD5_Context));
- ctx->buf[0] = 0x67452301;
- ctx->buf[1] = 0xefcdab89;
- ctx->buf[2] = 0x98badcfe;
- ctx->buf[3] = 0x10325476;
+ (*ctx)->buf[0] = 0x67452301;
+ (*ctx)->buf[1] = 0xefcdab89;
+ (*ctx)->buf[2] = 0x98badcfe;
+ (*ctx)->buf[3] = 0x10325476;
- ctx->bits[0] = 0;
- ctx->bits[1] = 0;
+ (*ctx)->bits[0] = 0;
+ (*ctx)->bits[1] = 0;
}
/*
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/entrance/src/daemon/md5.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- md5.h 1 Jan 2004 07:48:54 -0000 1.1
+++ md5.h 23 Mar 2004 01:31:59 -0000 1.2
@@ -11,7 +11,7 @@
unsigned char in[64];
} Entranced_MD5_Context;
-extern void entranced_md5_init(Entranced_MD5_Context *context);
+extern void entranced_md5_init(Entranced_MD5_Context **context);
extern void entranced_md5_update(Entranced_MD5_Context *context,unsigned char const
*buf,unsigned len);
extern void entranced_md5_final(unsigned char digest[MD5_HASHBYTES],
Entranced_MD5_Context *context);
extern void entranced_md5_transform(u_int32_t buf[4], u_int32_t const in[16]);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs