Unverified Commit 8f954248 authored by Nathan Tolbert's avatar Nathan Tolbert Committed by Luís Cobucci

don't require ssl_key and ssl_cert to use ssl_ca

parent c6785e34
...@@ -281,14 +281,9 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar ...@@ -281,14 +281,9 @@ class MysqliConnection implements Connection, PingableConnection, ServerInfoAwar
return; return;
} }
if (! isset($params['ssl_key']) || ! isset($params['ssl_cert'])) {
$msg = '"ssl_key" and "ssl_cert" parameters are mandatory when using secure connection parameters.';
throw new MysqliException($msg);
}
$this->_conn->ssl_set( $this->_conn->ssl_set(
$params['ssl_key'], $params['ssl_key'] ?? null,
$params['ssl_cert'], $params['ssl_cert'] ?? null,
$params['ssl_ca'] ?? null, $params['ssl_ca'] ?? null,
$params['ssl_capath'] ?? null, $params['ssl_capath'] ?? null,
$params['ssl_cipher'] ?? null $params['ssl_cipher'] ?? null
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment