summaryrefslogtreecommitdiff
path: root/ext/imap/php_imap.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-13 16:46:32 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-14 10:54:06 +0200
commit6c6a58e930c5863ab1bd11f6a19cbf22aa2f20d4 (patch)
treeb46dcd1ceec97bd434d56c9956fcb3439a981d9e /ext/imap/php_imap.c
parentd9058b61fb3e1ef0697433324716a8843e92c115 (diff)
downloadphp-git-6c6a58e930c5863ab1bd11f6a19cbf22aa2f20d4.tar.gz
Allow passing $tag for non-authenticated encryption
openssl_encrypt() currently throws a warning if the $tag out parameter is passed for a non-authenticated cipher. This violates the principle that a function should behave the same if a parameter is not passed, and if the default value is passed for the parameter. I believe this warning should simply be dropped and the $tag be populated with null, as is already the case. Otherwise, it is not possible to use openssl_encrypt() in generic wrapper APIs, that are compatible with both authenticated and non-authenticated encryption. Closes GH-6333.
Diffstat (limited to 'ext/imap/php_imap.c')
0 files changed, 0 insertions, 0 deletions