diff options
author | Frédéric Guillot <fred@kanboard.net> | 2018-01-11 14:01:32 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2018-01-11 14:01:32 -0800 |
commit | d35d5beee216ea0a092dac88e9b7556faa95372e (patch) | |
tree | 30098b2b885a445240e628894ceb7021d0fb02f6 /vendor/fguillot/picodb/lib/PicoDb/Driver/Mysql.php | |
parent | f7c6cbd0f41434afd8940bc54498b85d6d19e31c (diff) |
Add option to disable Mysql SSL server verification
Diffstat (limited to 'vendor/fguillot/picodb/lib/PicoDb/Driver/Mysql.php')
-rw-r--r-- | vendor/fguillot/picodb/lib/PicoDb/Driver/Mysql.php | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |