cvs: php4 /ext/mcrypt/ mcrypt.c
[email protected] ("Hartmut Holzgraefe")
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <cvshholzgra959120217@cvsserver> |
hholzgra Wed May 24 00:16:57 2000 EDT
Modified files:
/php4/ext/mcrypt mcrypt.c
Log:
protos where lacking return types
Index: php4/ext/mcrypt/mcrypt.c
diff -u php4/ext/mcrypt/mcrypt.c:1.27 php4/ext/mcrypt/mcrypt.c:1.28
--- php4/ext/mcrypt/mcrypt.c:1.27 Thu May 18 17:34:28 2000
+++ php4/ext/mcrypt/mcrypt.c Wed May 24 00:16:57 2000
@@ -176,7 +176,7 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
}
-/* 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 @@
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)
{