]> granicus.if.org Git - php/commitdiff
protos where lacking return types
authorHartmut Holzgraefe <hholzgra@php.net>
Tue, 23 May 2000 22:18:08 +0000 (22:18 +0000)
committerHartmut Holzgraefe <hholzgra@php.net>
Tue, 23 May 2000 22:18:08 +0000 (22:18 +0000)
ext/mcrypt/mcrypt.c
ext/mhash/mhash.c

index 6333d23c58300871e773246d49687cdd386f8163..d2fb868603191841851250b55f58bc9fb58ce6ee 100644 (file)
@@ -176,7 +176,7 @@ typedef enum {
        RAND
 } iv_source;
 
-/* proto mcrypt_create_iv(int size, int source)
+/* proto string mcrypt_create_iv(int size, int source)
    create an initializing vector (IV) */
 PHP_FUNCTION(mcrypt_create_iv)
 {
@@ -224,7 +224,7 @@ PHP_FUNCTION(mcrypt_create_iv)
        RETURN_STRINGL(iv, n, 0);
 }
 
-/* proto mcrypt_get_cipher_name(int cipher)
+/* proto string mcrypt_get_cipher_name(int cipher)
    get the name of cipher */
 PHP_FUNCTION(mcrypt_get_cipher_name)
 {
@@ -247,7 +247,7 @@ PHP_FUNCTION(mcrypt_get_cipher_name)
        RETURN_FALSE;
 }
 
-/* proto mcrypt_get_key_size(int cipher)
+/* proto int mcrypt_get_key_size(int cipher)
    get the key size of cipher */
 PHP_FUNCTION(mcrypt_get_key_size)
 {
@@ -262,7 +262,7 @@ PHP_FUNCTION(mcrypt_get_key_size)
        RETURN_LONG(mcrypt_get_key_size((*cipher)->value.lval));
 }
 
-/* proto mcrypt_get_block_size(int cipher)
+/* proto int mcrypt_get_block_size(int cipher)
    get the block size of cipher */
 PHP_FUNCTION(mcrypt_get_block_size)
 {
@@ -277,7 +277,7 @@ PHP_FUNCTION(mcrypt_get_block_size)
        RETURN_LONG(mcrypt_get_block_size((*cipher)->value.lval));
 }
 
-/* proto mcrypt_ofb(int cipher, string key, string data, int mode, string iv)
+/* proto string mcrypt_ofb(int cipher, string key, string data, int mode, string iv)
    OFB crypt/decrypt data using key key with cipher cipher starting with iv */
 PHP_FUNCTION(mcrypt_ofb)
 {
@@ -298,7 +298,7 @@ PHP_FUNCTION(mcrypt_ofb)
        RETURN_STRINGL(ndata, nsize, 0);
 }
 
-/* proto mcrypt_cfb(int cipher, string key, string data, int mode, string iv)
+/* proto string mcrypt_cfb(int cipher, string key, string data, int mode, string iv)
    CFB crypt/decrypt data using key key with cipher cipher starting with iv */
 PHP_FUNCTION(mcrypt_cfb)
 {
@@ -320,7 +320,7 @@ PHP_FUNCTION(mcrypt_cfb)
 }
 
 
-/* proto mcrypt_cbc(int cipher, string key, string data, int mode [,string iv])
+/* proto string mcrypt_cbc(int cipher, string key, string data, int mode [,string iv])
    CBC crypt/decrypt data using key key with cipher cipher using optional iv */
 PHP_FUNCTION(mcrypt_cbc)
 {
@@ -349,7 +349,7 @@ PHP_FUNCTION(mcrypt_cbc)
        RETURN_STRINGL(ndata, nsize, 0);
 }
 
-/* proto mcrypt_ecb(int cipher, string key, string data, int mode)
+/* proto string mcrypt_ecb(int cipher, string key, string data, int mode)
    ECB crypt/decrypt data using key key with cipher cipher */
 PHP_FUNCTION(mcrypt_ecb)
 {
index 1ba76db0c39fd23e047ece03b1bcd56b86e9a5d0..04c4ceadf8d0f5a9db0c3d31c65272ecdce378e2 100644 (file)
@@ -67,14 +67,14 @@ static PHP_MINIT_FUNCTION(mhash)
        return SUCCESS;
 }
 
-/* proto mhash_count()
+/* proto int mhash_count()
    get the number of available hashes */
 PHP_FUNCTION(mhash_count)
 {
        RETURN_LONG(mhash_count());
 }
 
-/* proto mhash_get_block_size(int hash)
+/* proto int mhash_get_block_size(int hash)
    get the block size of hash */
 PHP_FUNCTION(mhash_get_block_size)
 {
@@ -89,7 +89,7 @@ PHP_FUNCTION(mhash_get_block_size)
        RETURN_LONG(mhash_get_block_size((*hash)->value.lval));
 }
 
-/* proto mhash_get_hash_name(int hash)
+/* proto string mhash_get_hash_name(int hash)
    get the name of hash */
 PHP_FUNCTION(mhash_get_hash_name)
 {
@@ -111,7 +111,7 @@ PHP_FUNCTION(mhash_get_hash_name)
        }
 }
 
-/* proto mhash(int hash, string data)
+/* proto string mhash(int hash, string data)
    hash data with hash */
 PHP_FUNCTION(mhash)
 {