-
-
Notifications
You must be signed in to change notification settings - Fork 180
Description
I'm a port maintainer of phpldapadmin at FreeBSD ports collection. After last update (1.2.6.5) I'm not able to login because of error:
E_WARNING: openssl_encrypt(): Setting of IV length for AEAD mode failed.
Well, on FreeBSD there is openssl 1.1.1 as default so last changes of lib/functions.php are not compatible with openssl 1.1.1t
I've found that there is new variable SESSION_CIPHER which is setup to new algoritms.
I think that this variable should be defined via configfile or maybe should be checked with 'openssl version'. It could be set as aes-256-gcm as default if user would not set it's value in config file.
I don't know yet which way is better :-)
Please remember that modyfing lib/functions.php manually I will lost changes during upgrade.
I can make a patch which, but I think it is good idea to choose in which way SESSION_CIPHER should be defined.
Or maybe you have better ideas?