|
Lines 656-662
Link Here
|
| 656 |
dict_mysql->tls_key_file, dict_mysql->tls_cert_file, |
656 |
dict_mysql->tls_key_file, dict_mysql->tls_cert_file, |
| 657 |
dict_mysql->tls_CAfile, dict_mysql->tls_CApath, |
657 |
dict_mysql->tls_CAfile, dict_mysql->tls_CApath, |
| 658 |
dict_mysql->tls_ciphers); |
658 |
dict_mysql->tls_ciphers); |
| 659 |
#if MYSQL_VERSION_ID >= 50023 |
659 |
#if MYSQL_VERSION_ID >= 80000 |
|
|
660 |
if (dict_mysql->tls_verify_cert != -1) |
| 661 |
mysql_options(host->db, MYSQL_OPT_SSL_MODE, |
| 662 |
&dict_mysql->tls_verify_cert); |
| 663 |
#elif MYSQL_VERSION_ID >= 50023 |
| 660 |
if (dict_mysql->tls_verify_cert != -1) |
664 |
if (dict_mysql->tls_verify_cert != -1) |
| 661 |
mysql_options(host->db, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, |
665 |
mysql_options(host->db, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, |
| 662 |
&dict_mysql->tls_verify_cert); |
666 |
&dict_mysql->tls_verify_cert); |