diff options
Diffstat (limited to 'ext/hash/hash_md.c')
-rw-r--r-- | ext/hash/hash_md.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/hash/hash_md.c b/ext/hash/hash_md.c index 94fafbbf79..a34936d625 100644 --- a/ext/hash/hash_md.c +++ b/ext/hash/hash_md.c @@ -19,7 +19,7 @@ const php_hash_ops php_hash_md5_ops = { "md5", - (php_hash_init_func_t) PHP_MD5Init, + (php_hash_init_func_t) PHP_MD5InitArgs, (php_hash_update_func_t) PHP_MD5Update, (php_hash_final_func_t) PHP_MD5Final, php_hash_copy, @@ -34,7 +34,7 @@ const php_hash_ops php_hash_md5_ops = { const php_hash_ops php_hash_md4_ops = { "md4", - (php_hash_init_func_t) PHP_MD4Init, + (php_hash_init_func_t) PHP_MD4InitArgs, (php_hash_update_func_t) PHP_MD4Update, (php_hash_final_func_t) PHP_MD4Final, php_hash_copy, @@ -51,7 +51,7 @@ static int php_md2_unserialize(php_hashcontext_object *hash, zend_long magic, co const php_hash_ops php_hash_md2_ops = { "md2", - (php_hash_init_func_t) PHP_MD2Init, + (php_hash_init_func_t) PHP_MD2InitArgs, (php_hash_update_func_t) PHP_MD2Update, (php_hash_final_func_t) PHP_MD2Final, php_hash_copy, @@ -182,10 +182,10 @@ static void MD4Transform(uint32_t state[4], const unsigned char block[64]) state[3] += d; } -/* {{{ PHP_MD4Init +/* {{{ PHP_MD4InitArgs * MD4 initialization. Begins an MD4 operation, writing a new context. */ -PHP_HASH_API void PHP_MD4Init(PHP_MD4_CTX * context) +PHP_HASH_API void PHP_MD4InitArgs(PHP_MD4_CTX * context, ZEND_ATTRIBUTE_UNUSED HashTable *args) { context->count[0] = context->count[1] = 0; /* Load magic initialization constants. @@ -287,7 +287,7 @@ static const unsigned char MD2_S[256] = { 242, 239, 183, 14, 102, 88, 208, 228, 166, 119, 114, 248, 235, 117, 75, 10, 49, 68, 80, 180, 143, 237, 31, 26, 219, 153, 141, 51, 159, 17, 131, 20 }; -PHP_HASH_API void PHP_MD2Init(PHP_MD2_CTX *context) +PHP_HASH_API void PHP_MD2InitArgs(PHP_MD2_CTX *context, ZEND_ATTRIBUTE_UNUSED HashTable *args) { memset(context, 0, sizeof(PHP_MD2_CTX)); } |