summaryrefslogtreecommitdiff
path: root/ext/openssl
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2018-02-23 04:42:27 -0300
committerChristoph M. Becker <cmbecker69@gmx.de>2018-02-23 11:06:20 +0100
commit1314f0fb3a9ff25b9afe68845012c1d0acbec262 (patch)
tree85f4d3abdfe8c3da39b85ccf47ae25075d2987d3 /ext/openssl
parentbff179888f6d247c3584150f0c729634b95c745b (diff)
downloadphp-git-1314f0fb3a9ff25b9afe68845012c1d0acbec262.tar.gz
Use int instead of long in protos
Diffstat (limited to 'ext/openssl')
-rw-r--r--ext/openssl/openssl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c
index 2231f751ea..d8e3007a2d 100644
--- a/ext/openssl/openssl.c
+++ b/ext/openssl/openssl.c
@@ -3363,7 +3363,7 @@ PHP_FUNCTION(openssl_csr_export)
}
/* }}} */
-/* {{{ proto resource openssl_csr_sign(mixed csr, mixed x509, mixed priv_key, long days [, array config_args [, long serial]])
+/* {{{ proto resource openssl_csr_sign(mixed csr, mixed x509, mixed priv_key, int days [, array config_args [, int serial]])
Signs a cert with another CERT */
PHP_FUNCTION(openssl_csr_sign)
{
@@ -4933,7 +4933,7 @@ PHP_FUNCTION(openssl_dh_compute_key)
/* }}} */
-/* {{{ proto string openssl_pbkdf2(string password, string salt, long key_length, long iterations [, string digest_method = "sha1"])
+/* {{{ proto string openssl_pbkdf2(string password, string salt, int key_length, int iterations [, string digest_method = "sha1"])
Generates a PKCS5 v2 PBKDF2 string, defaults to sha1 */
PHP_FUNCTION(openssl_pbkdf2)
{
@@ -4991,7 +4991,7 @@ PHP_FUNCTION(openssl_pbkdf2)
/* {{{ PKCS7 S/MIME functions */
-/* {{{ proto bool openssl_pkcs7_verify(string filename, long flags [, string signerscerts [, array cainfo [, string extracerts [, string content [, string pk7]]]]])
+/* {{{ proto bool openssl_pkcs7_verify(string filename, int flags [, string signerscerts [, array cainfo [, string extracerts [, string content [, string pk7]]]]])
Verifys that the data block is intact, the signer is who they say they are, and returns the CERTs of the signers */
PHP_FUNCTION(openssl_pkcs7_verify)
{
@@ -5141,7 +5141,7 @@ clean_exit:
}
/* }}} */
-/* {{{ proto bool openssl_pkcs7_encrypt(string infile, string outfile, mixed recipcerts, array headers [, long flags [, long cipher]])
+/* {{{ proto bool openssl_pkcs7_encrypt(string infile, string outfile, mixed recipcerts, array headers [, int flags [, int cipher]])
Encrypts the message in the file named infile with the certificates in recipcerts and output the result to the file named outfile */
PHP_FUNCTION(openssl_pkcs7_encrypt)
{
@@ -5376,7 +5376,7 @@ clean_exit:
}
/* }}} */
-/* {{{ proto bool openssl_pkcs7_sign(string infile, string outfile, mixed signcert, mixed signkey, array headers [, long flags [, string extracertsfilename]])
+/* {{{ proto bool openssl_pkcs7_sign(string infile, string outfile, mixed signcert, mixed signkey, array headers [, int flags [, string extracertsfilename]])
Signs the MIME message in the file named infile with signcert/signkey and output the result to file name outfile. headers lists plain text headers to exclude from the signed portion of the message, and should include to, from and subject as a minimum */
PHP_FUNCTION(openssl_pkcs7_sign)
@@ -6526,7 +6526,7 @@ static int php_openssl_cipher_update(const EVP_CIPHER *cipher_type,
}
/* }}} */
-/* {{{ proto string openssl_encrypt(string data, string method, string password [, long options=0 [, string $iv=''[, string &$tag = ''[, string $aad = ''[, long $tag_length = 16]]]]])
+/* {{{ proto string openssl_encrypt(string data, string method, string password [, int options=0 [, string $iv=''[, string &$tag = ''[, string $aad = ''[, int $tag_length = 16]]]]])
Encrypts given data with given method and key, returns raw or base64 encoded string */
PHP_FUNCTION(openssl_encrypt)
{
@@ -6625,7 +6625,7 @@ PHP_FUNCTION(openssl_encrypt)
}
/* }}} */
-/* {{{ proto string openssl_decrypt(string data, string method, string password [, long options=0 [, string $iv = ''[, string $tag = ''[, string $aad = '']]]])
+/* {{{ proto string openssl_decrypt(string data, string method, string password [, int options=0 [, string $iv = ''[, string $tag = ''[, string $aad = '']]]])
Takes raw or base64 encoded string and decrypts it using given method and key */
PHP_FUNCTION(openssl_decrypt)
{