From f11b8713348196a78d567c45f89f3dac478f4748 Mon Sep 17 00:00:00 2001 From: Unknown <eric@sigmalis.com> Date: Fri, 2 Feb 2018 11:07:04 +0100 Subject: [PATCH] Ajout enregistrement log tlsv1x --- class/User.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/class/User.class.php b/class/User.class.php index f3d64b7e1..5fdda85c2 100644 --- a/class/User.class.php +++ b/class/User.class.php @@ -120,6 +120,13 @@ class User extends DataObject { $authenfication = ObjectInstancierFactory::getObjetInstancier()->get('Authentification'); $this->id = $authenfication->authenticate(); + if (isset($_SERVER['SSL_PROTOCOL']) && $_SERVER['SSL_PROTOCOL'] != 'TLSv1.2') { + file_put_contents( + "/tmp/openssl_version.log", + "{$_SERVER['SSL_PROTOCOL']} {$this->id}\n", + FILE_APPEND + ); + } $this->is_loggued = true; $init = $this->init(); $is_active = $this->isActive(); -- GitLab