Results 1 to 3 of 3

Thread: QNetworkAccessManager::get generates SSL qWarning output when no SSL is used

  1. #1
    Join Date
    Aug 2014
    Posts
    16
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QNetworkAccessManager::get generates SSL qWarning output when no SSL is used

    I have a call to QNetworkAccessManager::get which eventually works it's way down to q_resolveOpenSslSymbols in the Qt source. The code in q_resolveOpenSslSymbols outputs warnings if some of the SSL library routines are missing. On OS X the SSL library is older and some of these routines are missing so you get the warnings. My application does not use any SSL connections. But even given that, there does not seem to be any way to not hit these qWarnings. We develop and run unit tests with QT_FATAL_WARNINGS always set to catch issues and keep our code as clean as possible. This prevents anyone using QNetworkAccessManager and not using SSL from using QT_FATAL_WARNINGS in their testing since it hits false positive failures. Is their any way around this?


    Added after 12 minutes:


    Should have said that I'm using 5.4.0 which I think is when this problem started. Internet searches on the qWarning output can find many cases where other people are hitting this. But they are just ignoring it. With QT_FATAL_WARNINGS set I'm stuck not being able to ignore it.
    Last edited by don@thegagnes.com; 5th April 2015 at 22:25.

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: QNetworkAccessManager::get generates SSL qWarning output when no SSL is used

    I had the same messages starting with 5.4.0. Only way I know to get rid of the warnings is to rebuild Qt on your system. Not sure if the problem exists in 5.4.1 though since I compiled my own version right out of the chute (for another reason altogether).

    Edit: I should add that I have openssl 1.0.2a installed via macports, which is why building Qt 5.4.1 from source does not show these warnings.
    Last edited by jefftee; 6th April 2015 at 06:07.

  3. #3
    Join Date
    Aug 2014
    Posts
    16
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QNetworkAccessManager::get generates SSL qWarning output when no SSL is used

    Here is the answer:

    From Qt 5.4.1 onwards you can disable the warning by e.g. setting
    QT_LOGGING_RULES=qt.network.ssl.warning=false
    in the environment, or calling
    QLoggingCategory::setFilterRules("qt.network.ssl.w arning=false");
    in your main().

Similar Threads

  1. Replies: 1
    Last Post: 20th July 2012, 11:46
  2. Replies: 3
    Last Post: 27th August 2011, 21:44
  3. where can I get qWarning () output
    By npc in forum Newbie
    Replies: 6
    Last Post: 9th September 2010, 14:10
  4. Update to 4.4.2 generates new warnings
    By mclark in forum Qt Programming
    Replies: 1
    Last Post: 19th September 2008, 19:59
  5. Replies: 0
    Last Post: 19th August 2008, 02:06

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.