Skip to content

openssl_cipher_iv_length and FreeBSD #183

@wtps0n

Description

@wtps0n

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions