mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 10:38:45 +02:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@@ -649,10 +649,20 @@ EOF;
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
$sTlsOptions = '';
|
||||
$sTlsOptions .= ' --ssl';
|
||||
|
||||
$sDBVendor= CMDBSource::GetDBVendor();
|
||||
$sDBVersion = CMDBSource::GetDBVersion();
|
||||
$sMysqlSSLModeVersion = '5.7.0'; //Mysql 5.7.0 and upper deprecated --ssl and uses --ssl-mode instead
|
||||
if ($sDBVendor === CMDBSource::ENUM_DB_VENDOR_MYSQL && version_compare($sDBVersion, $sMysqlSSLModeVersion, '>='))
|
||||
{
|
||||
$sTlsOptions .= ' --ssl-mode=VERIFY_CA';
|
||||
}
|
||||
else
|
||||
{
|
||||
$sTlsOptions .= ' --ssl';
|
||||
}
|
||||
|
||||
// ssl-key parameter : not implemented
|
||||
// ssl-cert parameter : not implemented
|
||||
|
||||
|
||||
Reference in New Issue
Block a user