diff options
Diffstat (limited to 'src/sql.c')
-rw-r--r-- | src/sql.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -70,6 +70,9 @@ sql_init_method (struct access_method *method) if (conn->initcount++ == 0) { mysql_init (&conn->mysql); + if (conn->cacert) + mysql_ssl_set (&conn->mysql, NULL, NULL, conn->cacert, + NULL, NULL); if (!mysql_real_connect (&conn->mysql, conn->host, conn->user, conn->password, conn->database, conn->port, conn->socket, 0)) |