mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
![]() 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. |
||
---|---|---|
.. | ||
tests | ||
config.w32 | ||
config0.m4 | ||
CREDITS | ||
openssl.c | ||
php_openssl.h | ||
xp_ssl.c |