PDA

View Full Version : QSslSocket: cannot resolve TLSv1_1_client_method



8Observer8
19th June 2014, 07:49
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


#ifndef DOWNLOADER_H
#define DOWNLOADER_H

#include <memory>

#include <QObject>
#include <QString>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QNetWorkAccessManager>

class Downloader : public QObject
{
Q_OBJECT

public:

void fetch( const QString &url )
{
m_reply.reset(m_manager->get( QNetworkRequest( QUrl( url ) ) ) );
connect( m_reply.get( ), SIGNAL( finished( ) ),
this, SLOT( replyFinished( ) ) );
connect( m_reply.get( ), SIGNAL( downloadProgress( qint64, qint64 ) ),
this, SLOT( slotDownloadProgress(qint64, qint64 ) ) );
}

signals:
void signalWithContent( QString * );
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);

private slots:
void replyFinished( )
{
QByteArray data = m_reply->readAll( );
QString content( data );
emit signalWithContent( &content );
}

void slotDownloadProgress( qint64 bytesReceived, qint64 bytesTotal )
{
emit downloadProgress( bytesReceived, bytesTotal );
}

private:
std::shared_ptr<QNetworkAccessManager> m_manager =
std::make_shared<QNetworkAccessManager>( this );

std::shared_ptr<QNetworkReply> m_reply;
};

#endif // DOWNLOADER_H

ChrisW67
19th June 2014, 09:13
Do you have an OpenSSL library binary installed on your machine (either Windows or Linux)?