1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 00:54:08 +02:00

PostgreSQL: Allow to set connection's sslmode with AdminerLoginSsl plugin

Thanks to wodka (https://github.com/vrana/adminer/pull/427/files)
This commit is contained in:
Peter Knut
2024-09-17 17:56:12 +02:00
committed by Jakub Vrana
parent dfb33a323d
commit 1f97968e65
3 changed files with 17 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
<?php
/** Connect to MySQL using SSL
/** Connect to MySQL or PostgreSQL using SSL
* @link https://www.adminer.org/plugins/#use
* @author Jakub Vrana, https://www.vrana.cz/
* @license https://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
@@ -9,14 +9,14 @@
class AdminerLoginSsl {
/** @access protected */
var $ssl;
/**
* @param array array("key" => filename, "cert" => filename, "ca" => filename)
/**
* @param array MySQL: ["key" => filename, "cert" => filename, "ca" => filename], PostgresSQL: ["mode" => sslmode]
*/
function __construct($ssl) {
$this->ssl = $ssl;
}
function connectSsl() {
return $this->ssl;
}