[wp-trac] [WordPress Trac] #28625: Enhancement: Add constants for support SSL connections for mysqli

WordPress Trac noreply at wordpress.org
Tue Jun 24 22:39:14 UTC 2014


#28625: Enhancement: Add constants for support SSL connections for mysqli
----------------------------+-----------------------------
 Reporter:  hypertextranch  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Database        |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 In order to support SSL'ed MySQL connections with the `mysqli_*` functions
 introduced in WordPress 3.9 / PHP 5.5 `mysqli_ssl_set()` must be called to
 set the path to the SSL certs and keys to be used by the MySQL client
 before `mysqli_real_connect()` is called.

 We should add the following optional constants to allow for users to
 configure secure connections to the database.
 * `MYSQL_SSL_KEY`
 * `MYSQL_SSL_CERT`
 * `MYSQL_SSL_CA`
 * `MYSQL_SSL_CA_PATH`
 * `MYSQL_SSL_CIPHER`

 In addition this should only be set if the feature flag
 `MYSQLI_CLIENT_SSL` is set for the existing `MYSQL_CLIENT_FLAGS` constant.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28625>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list