How can I make my QwebView/QNetWorkRequest work with SSL?
QT return this errors (is clear that the error occurs because I did not configure SSL in my application):
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_noconf
QSslSocket: cannot resolve OPENSSL_add_all_algorithms_conf
QSslSocket: cannot call unresolved function OPENSSL_add_all_algorithms_conf
I am use Qt 5.1.1 for Windows 32-bit (MinGW 4.8, OpenGL) – my window is 64bit
I try ( http://stackoverflow.com/a/12769375/1518921 ):
myNAM *m_network;
QNetworkReply * myNAM::createRequest(
Operation op,
const QNetworkRequest &request,
QIODevice *outgoingData
){
QNetworkRequest req(request);
QSslConfiguration conf = req.sslConfiguration();
conf.setProtocol(QSsl::TlsV1SslV3);
req.setSslConfiguration(conf);
QNetworkAccessManager::createRequest(
op,
QNetworkRequest(request),
outgoingData
);
}
I’ll be honest, I have no idea where to start.
I searched but have not found anywhere that shows how trabalar SSL with QNetWorkRequest.
↧