QODBC with SSL?
-
I can't find information about this. Is it possible to enable SSL with QODBC? If so, how?
Edit: I have no issues using SSL with QMySql or using non-SSL connection with QODBC.
However, the QODBC driver documentation at http://qt-project.org/doc/qt-5.1/qtsql/sql-driver.html#qodbc makes no mention of SSL + ODBC and QODBC rejects parameters not on the list at http://qt-project.org/doc/qt-5.1/qtsql/qsqldatabase.html#setConnectOptions , none of which pertain to SSL.Interestingly enough, I cannot find documentation for those options, their meanings, or their allowed values anywhere. The only mention of those options I can find at all is on that documentation page, which does not state whether it is a comprehensive list or provide any further information.
The only other direct reference I can find to using SSL with QODBC is an unanswered post from four years ago:
"http://www.qtcentre.org/threads/34367-SSL-with-QODBC":http://www.qtcentre.org/threads/34367-SSL-with-QODBCFinding this information is further compounded by the fact that QODBC is also the name of an apparently unrelated ODBC product for Quickbooks.
-
The solution (from http://stackoverflow.com/questions/20957706/how-to-enable-ssl-with-qt-qodbc) is to put the SSL-related parameters and database name in connection string syntax and pass that to QSqlDatabase.setDatabaseName().