diff options
author | Frank M. Kromann <fmk@php.net> | 2001-12-03 05:14:28 +0000 |
---|---|---|
committer | Frank M. Kromann <fmk@php.net> | 2001-12-03 05:14:28 +0000 |
commit | e7ef5041d52933660f84c8994186b88be7718b04 (patch) | |
tree | 5189edf69fca16e6c30ae30c9b96d5d66852b9b9 /ext/standard | |
parent | 8e408647706dc5d2c9fa37bd31fade731723a3d1 (diff) | |
download | php-git-e7ef5041d52933660f84c8994186b88be7718b04.tar.gz |
Make php_MD5* functions available from shared extensions
Diffstat (limited to 'ext/standard')
-rw-r--r-- | ext/standard/md5.c | 8 | ||||
-rw-r--r-- | ext/standard/md5.h | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/ext/standard/md5.c b/ext/standard/md5.c index 641b8ac131..ecaccdde09 100644 --- a/ext/standard/md5.c +++ b/ext/standard/md5.c @@ -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 @@ static unsigned char PADDING[64] = /* {{{ 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 @@ void PHP_MD5Init(PHP_MD5_CTX * context) 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 @@ void PHP_MD5Update(PHP_MD5_CTX * context, const unsigned char *input, 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; diff --git a/ext/standard/md5.h b/ext/standard/md5.h index ae0d67163f..f6d670732d 100644 --- a/ext/standard/md5.h +++ b/ext/standard/md5.h @@ -54,9 +54,10 @@ typedef struct { 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); |