mirror of
https://github.com/vrana/adminer.git
synced 2025-08-17 20:01:25 +02:00
Support connecting to MySQL via SSL
This commit is contained in:
@@ -19,6 +19,12 @@ class Adminer {
|
||||
return array(SERVER, $_GET["username"], get_password());
|
||||
}
|
||||
|
||||
/** Get SSL connection options
|
||||
* @return array array("key" => filename, "cert" => filename, "ca" => filename) or null
|
||||
*/
|
||||
function connectSsl() {
|
||||
}
|
||||
|
||||
/** Get key used for permanent login
|
||||
* @param bool
|
||||
* @return string cryptic string which gets combined with password or false in case of an error
|
||||
|
@@ -12,9 +12,9 @@ if (extension_loaded('pdo')) {
|
||||
}
|
||||
}
|
||||
|
||||
function dsn($dsn, $username, $password) {
|
||||
function dsn($dsn, $username, $password, $options = array()) {
|
||||
try {
|
||||
parent::__construct($dsn, $username, $password);
|
||||
parent::__construct($dsn, $username, $password, $options);
|
||||
} catch (Exception $ex) {
|
||||
auth_error(h($ex->getMessage()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user