Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-3500

QMySQL - no way to set up SSL

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 3.x, 4.5.3, 4.6.0
    • Fix Version/s: 5.6.0 RC
    • Component/s: SQL Support
    • Labels:
      None
    • Commits:
      28ceb2ea5e79d65904d2ad83b8259e75b60acff6

      Description

      QMySQL - no way to set up SSL.

      In the documentation, it looks like we can set up SSL connection to a MySql database, but this does not appear to be correct.
      We currently only pass CLIENT_SSL when we call mysql_real_connect, but according to mysql document, we should call mysql_ssl_set to setup this flag before connecting.
      And what's more, we don't have any support for setting up the certificate, cipher, etc, which makes the mysql ssl support useless.
      We should add support for calling mysql_options.

      See:
      http://dev.mysql.com/doc/refman/5.1/en/mysql-ssl-set.html
      http://dev.mysql.com/doc/refman/5.1/en/mysql-options.html

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qbyte Olivier Delbeke
            Reporter:
            roschern Nils Christian Roscher-Nielsen (Inactive)
            Votes:
            8 Vote for this issue
            Watchers:
            13 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes