Results 1 to 7 of 7

Thread: ssl problem

  1. #1
    Join Date
    Jun 2009
    Posts
    74
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Question ssl problem

    Hi,

    I am tesing qnotifier which access https website of gmail rss feed,

    codes:

    http_.setHost("mail.google.com", QHttp::ConnectionModeHttps);
    http_.setUser(user, pass);
    http_.get("/mail/feed/atom");

    what puzzle me is :
    in linux it works well

    but in window I got the following error:
    " error,HTTPS connection requested but SSL support not compiled in"

    am i miss something when compile QT in windows?

    my QT is QT4.5.2

    Thanks advance for your help.

    hb

  2. #2
    Join Date
    Dec 2007
    Posts
    628
    Thanks
    3
    Thanked 89 Times in 87 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: ssl problem

    Check this:
    Qt Code:
    1. bool QSslSocket::supportsSsl () [static]
    To copy to clipboard, switch view to plain text mode 
    Returns true if this platform supports SSL; otherwise, returns false. So check it first.

  3. #3
    Join Date
    Jun 2009
    Posts
    74
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Default Re: ssl problem

    Hi,yogeshgokul

    Thanks a lot for your input,
    How can I solve it in windows? should i recompile QT with specific config?

    hb

  4. #4
    Join Date
    Jan 2008
    Location
    Poland
    Posts
    687
    Thanks
    4
    Thanked 140 Times in 132 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: ssl problem

    yes, you have to recompile after adding proper option in configure.exe, but first you have to have SSL support in your system - so install OpenSSL.
    I would like to be a "Guru"

    Useful hints (try them before asking):
    1. Use Qt Assistant
    2. Search the forum

    If you haven't found solution yet then create new topic with smart question.

  5. #5
    Join Date
    Jun 2009
    Posts
    74
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Default Re: ssl problem

    Hi,

    I have download openssl and
    config QT using:
    configure -openssl -I c:\openssl\outinc -L c:\openssl\out -openssl-linked
    OPENSSL_LIBS="-leay32 -lssl32" -release
    then recompiled QT.

    but after I compiled
    examples\network\securesocketclient
    when running ,it still report:
    The system does not support OPENSSL

    what's going wrong?????????

    Thanks,
    hb

  6. #6
    Join Date
    Jun 2009
    Posts
    74
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Default Re: ssl problem

    BTW:
    I compiled QT using mingw32

  7. #7
    Join Date
    Jun 2009
    Posts
    74
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Smile Re: ssl problem

    Hi,There,

    The problem has been solved ,i used the openssl installer instead of compile openssl source code,and it works now.

    I download openssl installer from
    http://www.slproweb.com/products/Win32OpenSSL.html

    after install openssl,then rebuild QT using
    configure -release -openssl -I C:\OpenSSL\include -L C:\OpenSSL\lib\MinGW
    mingw32-make

    Thanks a lot for all help

    Best regards,
    hb

  8. The following user says thank you to hashb for this useful post:

    jay (28th September 2009)

Similar Threads

  1. Replies: 1
    Last Post: 23rd April 2009, 09:05
  2. Replies: 19
    Last Post: 3rd April 2009, 23:17
  3. Grid Layout Problem
    By Seema Rao in forum Qt Programming
    Replies: 2
    Last Post: 4th May 2006, 12:45
  4. Problem with receiving events from QDateEdit
    By gunhelstr in forum Qt Programming
    Replies: 4
    Last Post: 20th April 2006, 11:21
  5. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 21:36

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.