From e084ac9d8bfe0c492b2f184ed08faf2d97ad114d Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sat, 3 Dec 2005 23:49:52 +0000 Subject: [PATCH] add declarations more uint -> size_t fixes --- ext/hash/php_hash.h | 11 +++++++++++ ext/hash/php_hash_salsa.h | 2 +- ext/hash/php_hash_snefru.h | 2 +- ext/hash/php_hash_whirlpool.h | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ext/hash/php_hash.h b/ext/hash/php_hash.h index 8a6ed4d5e2..52a3d16984 100644 --- a/ext/hash/php_hash.h +++ b/ext/hash/php_hash.h @@ -106,6 +106,17 @@ extern zend_module_entry hash_module_entry; #include "TSRM.h" #endif +PHP_FUNCTION(hash); +PHP_FUNCTION(hash_file); +PHP_FUNCTION(hash_hmac); +PHP_FUNCTION(hash_hmac_file); +PHP_FUNCTION(hash_init); +PHP_FUNCTION(hash_update); +PHP_FUNCTION(hash_update_stream); +PHP_FUNCTION(hash_update_file); +PHP_FUNCTION(hash_final); +PHP_FUNCTION(hash_algos); + PHP_HASH_API php_hash_ops *php_hash_fetch_ops(const char *algo, int algo_len); PHP_HASH_API void php_hash_register_algo(const char *algo, php_hash_ops *ops); diff --git a/ext/hash/php_hash_salsa.h b/ext/hash/php_hash_salsa.h index f6297711c0..37e35f62e2 100644 --- a/ext/hash/php_hash_salsa.h +++ b/ext/hash/php_hash_salsa.h @@ -36,7 +36,7 @@ typedef struct { PHP_HASH_API void PHP_SALSA10Init(PHP_SALSA_CTX *); PHP_HASH_API void PHP_SALSA20Init(PHP_SALSA_CTX *); -PHP_HASH_API void PHP_SALSAUpdate(PHP_SALSA_CTX *, const unsigned char *, uint); +PHP_HASH_API void PHP_SALSAUpdate(PHP_SALSA_CTX *, const unsigned char *, size_t); PHP_HASH_API void PHP_SALSAFinal(unsigned char[64], PHP_SALSA_CTX *); #endif diff --git a/ext/hash/php_hash_snefru.h b/ext/hash/php_hash_snefru.h index f8c71ba66d..b69278baf0 100644 --- a/ext/hash/php_hash_snefru.h +++ b/ext/hash/php_hash_snefru.h @@ -36,7 +36,7 @@ typedef struct { } PHP_SNEFRU_CTX; PHP_HASH_API void PHP_SNEFRUInit(PHP_SNEFRU_CTX *); -PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *, const unsigned char *, uint); +PHP_HASH_API void PHP_SNEFRUUpdate(PHP_SNEFRU_CTX *, const unsigned char *, size_t); PHP_HASH_API void PHP_SNEFRUFinal(unsigned char[32], PHP_SNEFRU_CTX *); #endif diff --git a/ext/hash/php_hash_whirlpool.h b/ext/hash/php_hash_whirlpool.h index 56be370778..5950702b11 100644 --- a/ext/hash/php_hash_whirlpool.h +++ b/ext/hash/php_hash_whirlpool.h @@ -33,7 +33,7 @@ typedef struct { } PHP_WHIRLPOOL_CTX; PHP_HASH_API void PHP_WHIRLPOOLInit(PHP_WHIRLPOOL_CTX *); -PHP_HASH_API void PHP_WHIRLPOOLUpdate(PHP_WHIRLPOOL_CTX *, const unsigned char *, uint); +PHP_HASH_API void PHP_WHIRLPOOLUpdate(PHP_WHIRLPOOL_CTX *, const unsigned char *, size_t); PHP_HASH_API void PHP_WHIRLPOOLFinal(unsigned char[64], PHP_WHIRLPOOL_CTX *); #endif -- 2.40.0