From b69fa1499f9b0d3c39ddfb0e524c64f4ae2ae7f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 28 Jan 2016 17:08:19 +0100 Subject: [PATCH] Bring back file inclustion, just remove version check from it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- libraries/plugins/auth/AuthenticationCookie.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libraries/plugins/auth/AuthenticationCookie.php b/libraries/plugins/auth/AuthenticationCookie.php index 990bddde31..e929455271 100644 --- a/libraries/plugins/auth/AuthenticationCookie.php +++ b/libraries/plugins/auth/AuthenticationCookie.php @@ -30,6 +30,19 @@ if (! empty($_REQUEST['target'])) { */ require './libraries/plugins/auth/swekey/swekey.auth.lib.php'; +/** + * phpseclib + */ +if (! function_exists('openssl_encrypt') + || ! function_exists('openssl_decrypt') + || ! function_exists('openssl_random_pseudo_bytes') +) { + include PHPSECLIB_INC_DIR . '/Crypt/Base.php'; + include PHPSECLIB_INC_DIR . '/Crypt/Rijndael.php'; + include PHPSECLIB_INC_DIR . '/Crypt/AES.php'; + include PHPSECLIB_INC_DIR . '/Crypt/Random.php'; +} + /** * Handles the cookie authentication method *