|
27 | 27 | #include "php.h"
|
28 | 28 | #include "php_ini.h"
|
29 | 29 | #include "php_openssl.h"
|
| 30 | +#include "zend_attributes.h" |
30 | 31 | #include "zend_exceptions.h"
|
31 | 32 |
|
32 | 33 | /* PHP Includes */
|
@@ -1300,6 +1301,46 @@ PHP_MINIT_FUNCTION(openssl)
|
1300 | 1301 |
|
1301 | 1302 | REGISTER_INI_ENTRIES();
|
1302 | 1303 |
|
| 1304 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_cms_decrypt", 3 /* $private_key */); |
| 1305 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_cms_sign", 3 /* $private_key */); |
| 1306 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_csr_sign", 2 /* $private_key */); |
| 1307 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_decrypt", 0 /* $data */); |
| 1308 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_decrypt", 2 /* $passphrase */); |
| 1309 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_dh_compute_key", 1 /* $private_key */); |
| 1310 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_encrypt", 0 /* $data */); |
| 1311 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_encrypt", 2 /* $passphrase */); |
| 1312 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_free_key", 0 /* $key */); |
| 1313 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_get_privatekey", 0 /* $private_key */); |
| 1314 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_get_privatekey", 1 /* $passphrase */); |
| 1315 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_open", 1 /* $output */); |
| 1316 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_open", 3 /* $private_key */); |
| 1317 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pbkdf2", 0 /* $password */); |
| 1318 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_export_to_file", 2 /* $private_key */); |
| 1319 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_export_to_file", 3 /* $passphrase */); |
| 1320 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_export", 2 /* $private_key */); |
| 1321 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_export", 3 /* $passphrase */); |
| 1322 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs12_read", 2 /* $passphrase */); |
| 1323 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs7_decrypt", 3 /* $private_key */); |
| 1324 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkcs7_sign", 3 /* $private_key */); |
| 1325 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_derive", 1 /* $private_key */); |
| 1326 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_export_to_file", 0 /* $key */); |
| 1327 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_export_to_file", 2 /* $passphrase */); |
| 1328 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_export", 0 /* $key */); |
| 1329 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_export", 2 /* $passphrase */); |
| 1330 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_free", 0 /* $key */); |
| 1331 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_get_private", 0 /* $private_key */); |
| 1332 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_pkey_get_private", 1 /* $passphrase */); |
| 1333 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_private_decrypt", 1 /* $decrypted_data */); |
| 1334 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_private_decrypt", 2 /* $private_key */); |
| 1335 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_private_encrypt", 0 /* $data */); |
| 1336 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_private_encrypt", 2 /* $private_key */); |
| 1337 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_public_decrypt", 1 /* $decrypted_data */); |
| 1338 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_public_encrypt", 0 /* $data */); |
| 1339 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_seal", 0 /* $data */); |
| 1340 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_sign", 2 /* $private_key */); |
| 1341 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_spki_new", 0 /* $private_key */); |
| 1342 | + zend_mark_function_parameter_as_sensitive(CG(function_table), "openssl_x509_check_private_key", 1 /* $private_key */); |
| 1343 | + |
1303 | 1344 | return SUCCESS;
|
1304 | 1345 | }
|
1305 | 1346 | /* }}} */
|
|
0 commit comments