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

QSslCipher::usedBits() returns 0 for an SSL web site in the finished slot of QNetworkAccessManager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.7.0
    • Network, Network: SSL
    • None
    • Qt 4.7 TP with VS2005 SP1 + OpenSSL 0.9.8l
      Windows XP SP3

    Description

      QSslCipher::usedBits() returns 0 for an SSL web site.

      [How to Reproduce]

      1. Build Qt 4.7 TP with VS2005 SP1 + OpenSSL 0.9.8l
      2. Modify NetworkAccessManager::requestFinished in networkaccessmanager.cpp like the following then build browser.exe:

      #include <QtNetwork/QSslConfiguration>
      #include <QtNetwork/QSslError>
      #include <QtNetwork/QSslCipher>
      
      void NetworkAccessManager::requestFinished(QNetworkReply *reply)
      {
      	QString url = reply->url().toString();
      	if (reply->attribute(QNetworkRequest::ConnectionEncryptedAttribute).toBool())
      	{
      		QSslConfiguration sslConf = reply->sslConfiguration();
      		if ( !sslConf.isNull() )
      		{
      			QSslCipher cipher = sslConf.sessionCipher();
      			if ( cipher.usedBits() == 0 )
      			{
      				QMessageBox::critical(0, QLatin1String("NetworkAccessManager::requestFinished"), QLatin1String("Something is wrong about QSslConfiguration!"));
      			}
      		}
      	}
      

      3. Open https://login.yahoo.co.jp/config/login_verify2?.src=ym

      [Expected Result]

      Nothing happens, it just loads the URL

      [Actual Result]

      It shows the "Something is wrong about QSslConfiguration!" message

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            ryuk Ryuichi KUBUKI
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes