version 1.1.1.1, 2012/02/21 23:47:58
|
version 1.1.1.2, 2013/07/22 01:31:56
|
Line 29 if ($res = $link->query('SHOW VARIABLES LIKE "have_ssl
|
Line 29 if ($res = $link->query('SHOW VARIABLES LIKE "have_ssl
|
if (empty($row)) |
if (empty($row)) |
die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error)); |
die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error)); |
|
|
if ($row[1] == 'NO') | if (($row[1] == 'NO') || ($row[1] == 'DISABLED')) |
die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error)); |
die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error)); |
|
|
$link->close(); |
$link->close(); |
Line 41 $link->close();
|
Line 41 $link->close();
|
|
|
|
|
$flags = MYSQLI_CLIENT_SSL; |
$flags = MYSQLI_CLIENT_SSL; |
| |
$link = mysqli_init(); |
$link = mysqli_init(); |
mysqli_ssl_set($link, null, null, null, null, "RC4-MD5"); |
mysqli_ssl_set($link, null, null, null, null, "RC4-MD5"); |
if (my_mysqli_real_connect($link, 'p:' . $host, $user, $passwd, $db, $port, null, $flags)) { |
if (my_mysqli_real_connect($link, 'p:' . $host, $user, $passwd, $db, $port, null, $flags)) { |