From c9b9f8493ad52609d5aa603353b19fe5c30ac338 Mon Sep 17 00:00:00 2001 From: Chuck Hagenbuch Date: Tue, 17 Feb 2009 12:09:21 -0500 Subject: [PATCH] Request #7997 - add SQL ssl support --- imp/lib/Quota/sql.php | 4 +++- imp/lib/Sentmail/sql.php | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/imp/lib/Quota/sql.php b/imp/lib/Quota/sql.php index 2d2b3c245..162b1e385 100644 --- a/imp/lib/Quota/sql.php +++ b/imp/lib/Quota/sql.php @@ -63,7 +63,9 @@ class IMP_Quota_sql extends IMP_Quota { if (!$this->_connected) { require_once 'DB.php'; - $this->_db = &DB::connect($this->_params); + $this->_db = &DB::connect($this->_params, + array('persistent' => !empty($this->_params['persistent']), + 'ssl' => !empty($this->_params['ssl']))); if (is_a($this->_db, 'PEAR_Error')) { return PEAR::raiseError(_("Unable to connect to SQL server.")); } diff --git a/imp/lib/Sentmail/sql.php b/imp/lib/Sentmail/sql.php index 979940afe..3de53ca40 100644 --- a/imp/lib/Sentmail/sql.php +++ b/imp/lib/Sentmail/sql.php @@ -206,7 +206,8 @@ class IMP_Sentmail_sql extends IMP_Sentmail /* Connect to the SQL server using the supplied parameters. */ require_once 'DB.php'; $this->_db = DB::connect($this->_params, - array('persistent' => !empty($this->_params['persistent']))); + array('persistent' => !empty($this->_params['persistent']), + 'ssl' => !empty($this->_params['ssl']))); if (is_a($this->_db, 'PEAR_Error')) { return $this->_db; } -- 2.11.0