Results 1 to 11 of 11

Thread: QSslSocket Problems

  1. #1
    Join Date
    May 2011
    Posts
    6
    Platforms
    Unix/X11 Windows Symbian S60

    Default QSslSocket Problems

    Hello all, I've been working on my first real QT project for Symbian.
    Unfortunately I'm getting the following errors when attempting to deploy my project to the QT Simulator:

    Qt Code:
    1. QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
    2. QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
    3. QSslSocket: cannot call unresolved function OPENSSL_add_all_algorithms_noconf
    To copy to clipboard, switch view to plain text mode 

    I have openssl installed. My platform is Windows.

    Any help would be much appreciated.

    Thanks,
    Jivings

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSslSocket Problems

    Apparently your app can't find OpenSSL. Maybe you need to add it to your PATH.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2011
    Posts
    6
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QSslSocket Problems

    Thanks for your reply, but that was also my first idea.

    I added the openSSL home and bin directory to my path and recompiled QT. No change.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSslSocket Problems

    You don't need to recompile Qt. OpenSSL needs to be available when you run your app.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    May 2011
    Posts
    6
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QSslSocket Problems

    Is there any reason why it would not be available? It is installed and on the PATH.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSslSocket Problems

    There can be many reasons, just like with any other framework/app.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    May 2011
    Posts
    6
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QSslSocket Problems

    Can you suggest any? I thought this was a support forum. If you don't know then let me know, but I'm stumped.

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSslSocket Problems

    The thing is your issue is not likely related to Qt. I can suggest that you try to write a simple application that links with OpenSSL directly and see if it launches. If so, Qt's SSL capabilities should also work and if they don't then that's the fault of something else than your OpenSSL installation. But if the app fails to launch with missing OpenSSL, you'll know where to look for problems.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    May 2011
    Posts
    6
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QSslSocket Problems

    All apps, however simple are giving the same SSL errors. What do you think this is a problem with then?

    Thanks for your help.

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QSslSocket Problems

    Are you linking explicitly with OpenSSL?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    May 2011
    Posts
    6
    Platforms
    Unix/X11 Windows Symbian S60

    Default Re: QSslSocket Problems

    I found the problem. My setup may be a bit different from the usual, so I don't know how relevant my solution will be to anyone else experiencing the same problem.

    Anyway I am using PhoneGap libraries as part of my QT project. PhoneGap acts as a wrapper around plain html and Javascript to allow you to create an application without writing in the native language.
    So I searched through all the PhoneGap files and could not find anything that would require SSL support.

    But yesterday I noticed that in my html source I was accessing an external file located on an SSL encrypted website (https). Doh! This was what was causing the problem, though I still don't know why it was.

    Hopefully I've provided enough keywords for anyone else with the same problem to find this post and thanks for your help wysota!

Similar Threads

  1. QSslSocket Problems
    By tntcoda in forum Newbie
    Replies: 2
    Last Post: 24th December 2014, 21:26
  2. QSslSocket example
    By Ratheendrans in forum Qt Programming
    Replies: 3
    Last Post: 6th July 2011, 20:51
  3. NEED HELP!!! about qsslsocket
    By asnoka in forum Installation and Deployment
    Replies: 2
    Last Post: 12th May 2008, 15:12
  4. QSslSocket problem
    By The Storm in forum Qt Programming
    Replies: 5
    Last Post: 23rd March 2008, 12:58
  5. QSslSocket problems
    By TheOnlyDan in forum Qt Programming
    Replies: 6
    Last Post: 27th September 2007, 11:54

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.