cvs: php4 /ext/standard md5.c md5.h

From: Date: Mon, 03 Dec 2001 05:14:28 +0000
Subject: cvs: php4 /ext/standard md5.c md5.h
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-8399@lists.php.net to get a copy of this message
fmk Mon Dec 3 00:14:28 2001 EDT Modified files: /php4/ext/standard md5.c md5.h Log: Make php_MD5* functions available from shared extensions Index: php4/ext/standard/md5.c diff -u php4/ext/standard/md5.c:1.22 php4/ext/standard/md5.c:1.23 --- php4/ext/standard/md5.c:1.22 Sun Nov 18 13:48:17 2001 +++ php4/ext/standard/md5.c Mon Dec 3 00:14:28 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: md5.c,v 1.22 2001/11/18 18:48:17 derick Exp $ */ +/* $Id: md5.c,v 1.23 2001/12/03 05:14:28 fmk Exp $ */ /* * md5.c - Copyright 1997 Lachlan Roche @@ -28,7 +28,7 @@ #include "md5.h" -static void make_digest(char *md5str, unsigned char *digest) +PHPAPI void make_digest(char *md5str, unsigned char *digest) { int i; @@ -213,7 +213,7 @@ /* {{{ PHP_MD5Init * MD5 initialization. Begins an MD5 operation, writing a new context. */ -void PHP_MD5Init(PHP_MD5_CTX * context) +PHPAPI void PHP_MD5Init(PHP_MD5_CTX * context) { context->count[0] = context->count[1] = 0; /* Load magic initialization constants. @@ -230,7 +230,7 @@ operation, processing another message block, and updating the context. */ -void PHP_MD5Update(PHP_MD5_CTX * context, const unsigned char *input, +PHPAPI void PHP_MD5Update(PHP_MD5_CTX * context, const unsigned char *input, unsigned int inputLen) { unsigned int i, index, partLen; @@ -271,7 +271,7 @@ MD5 finalization. Ends an MD5 message-digest operation, writing the the message digest and zeroizing the context. */ -void PHP_MD5Final(unsigned char digest[16], PHP_MD5_CTX * context) +PHPAPI void PHP_MD5Final(unsigned char digest[16], PHP_MD5_CTX * context) { unsigned char bits[8]; unsigned int index, padLen; Index: php4/ext/standard/md5.h diff -u php4/ext/standard/md5.h:1.10 php4/ext/standard/md5.h:1.11 --- php4/ext/standard/md5.h:1.10 Sun Nov 18 13:48:17 2001 +++ php4/ext/standard/md5.h Mon Dec 3 00:14:28 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: md5.h,v 1.10 2001/11/18 18:48:17 derick Exp $ */ +/* $Id: md5.h,v 1.11 2001/12/03 05:14:28 fmk Exp $ */ #ifndef MD5_H #define MD5_H @@ -54,9 +54,10 @@ unsigned char buffer[64]; /* input buffer */ } PHP_MD5_CTX; -void PHP_MD5Init(PHP_MD5_CTX *); -void PHP_MD5Update(PHP_MD5_CTX *, const unsigned char *, unsigned int); -void PHP_MD5Final(unsigned char[16], PHP_MD5_CTX *); +PHPAPI void make_digest(char *md5str, unsigned char *digest); +PHPAPI void PHP_MD5Init(PHP_MD5_CTX *); +PHPAPI void PHP_MD5Update(PHP_MD5_CTX *, const unsigned char *, unsigned int); +PHPAPI void PHP_MD5Final(unsigned char[16], PHP_MD5_CTX *); PHP_NAMED_FUNCTION(php_if_md5); PHP_NAMED_FUNCTION(php_if_md5_file);

« previous php.cvs (#8399) next »