Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make sure ssl is enabled if only :sslverify is set (#889)
Previously, when "sslverify: false/true" was the only ssl related options passed to the constructor, the module skipped the call to "mysql_ssl_set". It seems however that for some variants for the mysql client libraries calling "mysql_ssl_set" is the only way to enable SSL for the client connections. (E.g. the libraries shipped as part of mariadb 10.1 still lack support for MYSQL_OPT_SSL_ENFORCE and MYSQL_OPT_SSL_MODE) This change allows enabling ssl with default values for all other options by just passing "sslverify: true" or "sslverify: false" to the constructor. (Depending on whether server certificate verification is wanted or not)
- Loading branch information