Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QODBC with SSL?
Forum Updated to NodeBB v4.3 + New Features

QODBC with SSL?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    superqt
    wrote on last edited by
    #1

    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-QODBC

    Finding this information is further compounded by the fact that QODBC is also the name of an apparently unrelated ODBC product for Quickbooks.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      superqt
      wrote on last edited by
      #2

      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().

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved