Skip to content

Commit

Permalink
fix openssl_encrypt special case signature
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Jan 24, 2025
1 parent 7003543 commit 81210ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/special_cases.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function readdir($dir_handle = null)
* @throws OpensslException
*
*/
function openssl_encrypt(string $data, string $method, string $key, int $options = 0, string $iv = "", string &$tag = "", string $aad = "", int $tag_length = 16): string
function openssl_encrypt(string $data, string $method, string $key, int $options = 0, string $iv = "", ?string &$tag = "", string $aad = "", int $tag_length = 16): string
{
error_clear_last();
// The $tag parameter is handled in a weird way by openssl_encrypt. It cannot be provided unless encoding is AEAD
Expand Down

0 comments on commit 81210ac

Please sign in to comment.