From d35d5beee216ea0a092dac88e9b7556faa95372e Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 11 Jan 2018 14:01:32 -0800 Subject: Add option to disable Mysql SSL server verification --- vendor/fguillot/picodb/lib/PicoDb/Driver/Mysql.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'vendor/fguillot/picodb/lib/PicoDb/Driver/Mysql.php') diff --git a/vendor/fguillot/picodb/lib/PicoDb/Driver/Mysql.php b/vendor/fguillot/picodb/lib/PicoDb/Driver/Mysql.php index 4f3ca64e..147be816 100644 --- a/vendor/fguillot/picodb/lib/PicoDb/Driver/Mysql.php +++ b/vendor/fguillot/picodb/lib/PicoDb/Driver/Mysql.php @@ -98,6 +98,14 @@ class Mysql extends Base $options[PDO::MYSQL_ATTR_SSL_CA] = $settings['ssl_ca']; } + if (! empty($settings['persistent'])) { + $options[PDO::ATTR_PERSISTENT] = $settings['persistent']; + } + + if (isset($settings['verify_server_cert'])) { + $options[PDO::MYSQL_ATTR_SSL_VERIFY_SERVER_CERT] = $settings['verify_server_cert']; + } + return $options; } -- cgit v1.2.3