Results 1 to 2 of 2

Thread: QSslSocket: cannot resolve TLSv1_1_client_method

  1. #1
    Join Date
    Nov 2012
    Location
    Russia
    Posts
    231
    Thanks
    118
    Thanked 18 Times in 10 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default QSslSocket: cannot resolve TLSv1_1_client_method

    Hello!

    Why I receive this messages? Is it bad?

    QSslSocket: cannot resolve TLSv1_1_client_method
    QSslSocket: cannot resolve TLSv1_2_client_method
    QSslSocket: cannot resolve TLSv1_1_server_method
    QSslSocket: cannot resolve TLSv1_2_server_method
    QSslSocket: cannot resolve SSL_select_next_proto
    QSslSocket: cannot resolve SSL_CTX_set_next_proto_select_cb
    QSslSocket: cannot resolve SSL_get0_next_proto_negotiated
    QSslSocket: cannot call unresolved function SSL_get0_next_proto_negotiated
    Downloader.h
    Qt Code:
    1. #ifndef DOWNLOADER_H
    2. #define DOWNLOADER_H
    3.  
    4. #include <memory>
    5.  
    6. #include <QObject>
    7. #include <QString>
    8. #include <QNetworkReply>
    9. #include <QNetworkRequest>
    10. #include <QNetWorkAccessManager>
    11.  
    12. class Downloader : public QObject
    13. {
    14. Q_OBJECT
    15.  
    16. public:
    17.  
    18. void fetch( const QString &url )
    19. {
    20. m_reply.reset(m_manager->get( QNetworkRequest( QUrl( url ) ) ) );
    21. connect( m_reply.get( ), SIGNAL( finished( ) ),
    22. this, SLOT( replyFinished( ) ) );
    23. connect( m_reply.get( ), SIGNAL( downloadProgress( qint64, qint64 ) ),
    24. this, SLOT( slotDownloadProgress(qint64, qint64 ) ) );
    25. }
    26.  
    27. signals:
    28. void signalWithContent( QString * );
    29. void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
    30.  
    31. private slots:
    32. void replyFinished( )
    33. {
    34. QByteArray data = m_reply->readAll( );
    35. QString content( data );
    36. emit signalWithContent( &content );
    37. }
    38.  
    39. void slotDownloadProgress( qint64 bytesReceived, qint64 bytesTotal )
    40. {
    41. emit downloadProgress( bytesReceived, bytesTotal );
    42. }
    43.  
    44. private:
    45. std::shared_ptr<QNetworkAccessManager> m_manager =
    46. std::make_shared<QNetworkAccessManager>( this );
    47.  
    48. std::shared_ptr<QNetworkReply> m_reply;
    49. };
    50.  
    51. #endif // DOWNLOADER_H
    To copy to clipboard, switch view to plain text mode 

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: QSslSocket: cannot resolve TLSv1_1_client_method

    Do you have an OpenSSL library binary installed on your machine (either Windows or Linux)?

Similar Threads

  1. Trying to resolve sub-classing QThread - or not
    By astodolski in forum Qt Programming
    Replies: 12
    Last Post: 13th December 2012, 20:35
  2. QLibrary resolve problem
    By Nippler in forum Qt Programming
    Replies: 0
    Last Post: 4th December 2008, 16:37
  3. How to resolve qbyteA[5] = qbyteB?
    By hiuao in forum Qt Programming
    Replies: 9
    Last Post: 12th January 2008, 14:33
  4. Can somebody resolve this issue???
    By im_rajya in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2006, 11:37
  5. Auto resolve in QFileDialog
    By Levon Nikoghosyan in forum Qt Programming
    Replies: 1
    Last Post: 29th November 2006, 12:15

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.