@@ -64,7 +64,7 @@ function openssl_csr_export_to_file($csr, string $outfilename, bool $notext = tr
64
64
* @throws OpensslException
65
65
*
66
66
*/
67
- function openssl_csr_export ($ csr , string &$ out , bool $ notext = true ): void
67
+ function openssl_csr_export ($ csr , ? string &$ out , bool $ notext = true ): void
68
68
{
69
69
error_clear_last ();
70
70
$ result = \openssl_csr_export ($ csr , $ out , $ notext );
@@ -389,7 +389,7 @@ function openssl_encrypt(string $data, string $method, string $key, int $options
389
389
* @throws OpensslException
390
390
*
391
391
*/
392
- function openssl_open (string $ sealed_data , string &$ open_data , string $ env_key , $ priv_key_id , string $ method = "RC4 " , string $ iv = null ): void
392
+ function openssl_open (string $ sealed_data , ? string &$ open_data , string $ env_key , $ priv_key_id , string $ method = "RC4 " , string $ iv = null ): void
393
393
{
394
394
error_clear_last ();
395
395
if ($ iv !== null ) {
@@ -510,7 +510,7 @@ function openssl_pkcs12_export_to_file($x509, string $filename, $priv_key, strin
510
510
* @throws OpensslException
511
511
*
512
512
*/
513
- function openssl_pkcs12_export ($ x509 , string &$ out , $ priv_key , string $ pass , array $ args = null ): void
513
+ function openssl_pkcs12_export ($ x509 , ? string &$ out , $ priv_key , string $ pass , array $ args = null ): void
514
514
{
515
515
error_clear_last ();
516
516
if ($ args !== null ) {
@@ -535,7 +535,7 @@ function openssl_pkcs12_export($x509, string &$out, $priv_key, string $pass, arr
535
535
* @throws OpensslException
536
536
*
537
537
*/
538
- function openssl_pkcs12_read (string $ pkcs12 , array &$ certs , string $ pass ): void
538
+ function openssl_pkcs12_read (string $ pkcs12 , ? array &$ certs , string $ pass ): void
539
539
{
540
540
error_clear_last ();
541
541
$ result = \openssl_pkcs12_read ($ pkcs12 , $ certs , $ pass );
@@ -708,7 +708,7 @@ function openssl_pkey_export_to_file($key, string $outfilename, string $passphra
708
708
* @throws OpensslException
709
709
*
710
710
*/
711
- function openssl_pkey_export ($ key , string &$ out , string $ passphrase = null , array $ configargs = null ): void
711
+ function openssl_pkey_export ($ key , ? string &$ out , string $ passphrase = null , array $ configargs = null ): void
712
712
{
713
713
error_clear_last ();
714
714
if ($ configargs !== null ) {
@@ -832,7 +832,7 @@ function openssl_pkey_new(array $configargs = null)
832
832
* @throws OpensslException
833
833
*
834
834
*/
835
- function openssl_private_decrypt (string $ data , string &$ decrypted , $ key , int $ padding = OPENSSL_PKCS1_PADDING ): void
835
+ function openssl_private_decrypt (string $ data , ? string &$ decrypted , $ key , int $ padding = OPENSSL_PKCS1_PADDING ): void
836
836
{
837
837
error_clear_last ();
838
838
$ result = \openssl_private_decrypt ($ data , $ decrypted , $ key , $ padding );
@@ -860,7 +860,7 @@ function openssl_private_decrypt(string $data, string &$decrypted, $key, int $pa
860
860
* @throws OpensslException
861
861
*
862
862
*/
863
- function openssl_private_encrypt (string $ data , string &$ crypted , $ key , int $ padding = OPENSSL_PKCS1_PADDING ): void
863
+ function openssl_private_encrypt (string $ data , ? string &$ crypted , $ key , int $ padding = OPENSSL_PKCS1_PADDING ): void
864
864
{
865
865
error_clear_last ();
866
866
$ result = \openssl_private_encrypt ($ data , $ crypted , $ key , $ padding );
@@ -889,7 +889,7 @@ function openssl_private_encrypt(string $data, string &$crypted, $key, int $padd
889
889
* @throws OpensslException
890
890
*
891
891
*/
892
- function openssl_public_decrypt (string $ data , string &$ decrypted , $ key , int $ padding = OPENSSL_PKCS1_PADDING ): void
892
+ function openssl_public_decrypt (string $ data , ? string &$ decrypted , $ key , int $ padding = OPENSSL_PKCS1_PADDING ): void
893
893
{
894
894
error_clear_last ();
895
895
$ result = \openssl_public_decrypt ($ data , $ decrypted , $ key , $ padding );
@@ -920,7 +920,7 @@ function openssl_public_decrypt(string $data, string &$decrypted, $key, int $pad
920
920
* @throws OpensslException
921
921
*
922
922
*/
923
- function openssl_public_encrypt (string $ data , string &$ crypted , $ key , int $ padding = OPENSSL_PKCS1_PADDING ): void
923
+ function openssl_public_encrypt (string $ data , ? string &$ crypted , $ key , int $ padding = OPENSSL_PKCS1_PADDING ): void
924
924
{
925
925
error_clear_last ();
926
926
$ result = \openssl_public_encrypt ($ data , $ crypted , $ key , $ padding );
@@ -947,7 +947,7 @@ function openssl_public_encrypt(string $data, string &$crypted, $key, int $paddi
947
947
* @throws OpensslException
948
948
*
949
949
*/
950
- function openssl_random_pseudo_bytes (int $ length , bool &$ crypto_strong = null ): string
950
+ function openssl_random_pseudo_bytes (int $ length , ? bool &$ crypto_strong = null ): string
951
951
{
952
952
error_clear_last ();
953
953
$ result = \openssl_random_pseudo_bytes ($ length , $ crypto_strong );
@@ -982,7 +982,7 @@ function openssl_random_pseudo_bytes(int $length, bool &$crypto_strong = null):
982
982
* @throws OpensslException
983
983
*
984
984
*/
985
- function openssl_seal (string $ data , string &$ sealed_data , array &$ env_keys , array $ pub_key_ids , string $ method = "RC4 " , string &$ iv = null ): int
985
+ function openssl_seal (string $ data , ? string &$ sealed_data , array &$ env_keys , array $ pub_key_ids , string $ method = "RC4 " , string &$ iv = null ): int
986
986
{
987
987
error_clear_last ();
988
988
$ result = \openssl_seal ($ data , $ sealed_data , $ env_keys , $ pub_key_ids , $ method , $ iv );
@@ -1012,7 +1012,7 @@ function openssl_seal(string $data, string &$sealed_data, array &$env_keys, arra
1012
1012
* @throws OpensslException
1013
1013
*
1014
1014
*/
1015
- function openssl_sign (string $ data , string &$ signature , $ priv_key_id , $ signature_alg = OPENSSL_ALGO_SHA1 ): void
1015
+ function openssl_sign (string $ data , ? string &$ signature , $ priv_key_id , $ signature_alg = OPENSSL_ALGO_SHA1 ): void
1016
1016
{
1017
1017
error_clear_last ();
1018
1018
$ result = \openssl_sign ($ data , $ signature , $ priv_key_id , $ signature_alg );
@@ -1062,7 +1062,7 @@ function openssl_x509_export_to_file($x509, string $outfilename, bool $notext =
1062
1062
* @throws OpensslException
1063
1063
*
1064
1064
*/
1065
- function openssl_x509_export ($ x509 , string &$ output , bool $ notext = true ): void
1065
+ function openssl_x509_export ($ x509 , ? string &$ output , bool $ notext = true ): void
1066
1066
{
1067
1067
error_clear_last ();
1068
1068
$ result = \openssl_x509_export ($ x509 , $ output , $ notext );
0 commit comments