Questions tagged [qsslsocket]

QSslSocket is an SSL-encrypted network socket class, from the Qt library

QSslSocket is a class in the library that provides a Secure Sockets Layer ()-encrypted network . It is part of the QtNetwork module and was introduced in Qt 4.3.

The most common way to use QSslSocket is to construct an object and start a secure connection by calling connectToHostEncrypted(). This method starts an immediate SSL handshake once the connection has been established.

See also

51 questions
13
votes
5 answers

QSslSocket: cannot call unresolved function

I am running Qt 5.7.1 (MSVC 2015, 32 bit) with Qt Creator 4.2.0. I have a problem with QSslSocket. I am getting the following errors: qt.network.ssl: QSslSocket: cannot call unresolved function SSLv23_client_method qt.network.ssl: QSslSocket: cannot…
KirstenS
  • 145
  • 1
  • 1
  • 7
11
votes
4 answers

QSslSocket error when SSL is NOT used

I have noticed this output in two of my Qt applications that use QNetworkRequest to load some data from outside over QNeworkRequest : QSslSocket: cannot resolve TLSv1_1_client_method QSslSocket: cannot resolve TLSv1_2_client_method QSslSocket:…
Pavel
  • 698
  • 1
  • 11
  • 20
8
votes
1 answer

How to handle QSslSocket: cannot resolve TLSv1_1_client_method error

I'm trying to develop a program that can connect to google map and get the map by using google map GPS parameters. so i have one problem , when i compile the code and click the run button i see these errors in the application output: QSslSocket:…
user3707582
  • 81
  • 1
  • 1
  • 3
7
votes
1 answer

QSslSocket: cannot resolve SSLV2_client_method

I have created a sslclient and sslserver using QSslSocket in Qt 5.4.1 in debian wheezy. When I run the program they dont work at all. After debuging my code I saw when it try to create a new object from QSslSocket it return this error (cannot…
Ehsan Maiqani
  • 1,684
  • 1
  • 14
  • 16
6
votes
1 answer

Morph existing QTcpSocket to QSslSocket

Is it possible to create a new QSslSocket and for it to take ownership over the existing TCP connection, and the old QTcpSocket to be discarded, without interrupting or closing the TCP connection? I need this to implement explicit FTPS in my FTP…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
5
votes
1 answer

Qt with QSslSocket not connecting properly

I have a Client-Server application that was working with QTcpSocket. Now I would like to use an encrypted SSL connection instead, therefore I tried to switch to QSslSocket. But I can't establish a connection to server. Here is the code for the…
wasp256
  • 5,943
  • 12
  • 72
  • 119
5
votes
2 answers

Qt QSslSocket "The certificate is self-signed, and untrusted"

i want to connect server with QSslSocket and on server i get soketSslError "The certificate is self-signed, and untrusted" , but i dont understand why i have this error. On first step was generated file for server and client with openssl $openssl…
mr.leo
  • 351
  • 2
  • 4
  • 9
4
votes
1 answer

How to use the TLS protocol on Qt?

Please give an example of the server side, which shows use TLS. Now I have the following code: #include #include "server.h" int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); Server h; return…
tioo
  • 99
  • 1
  • 6
4
votes
2 answers

Calling QSslSocket::startServerEncryption, but nothing happens

I'm trying to implement an SSL server using the sample code from Qt documentation. But after serverSocket->startServerEncryption(); is called, nothing happens - neither the encrypted() nor the sslErrors() signals are emitted (I've put breakpoints in…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
3
votes
1 answer

Relation between QT_NO_SSL and QSslSocket::supportsSsl()

There is a define QT_NO_SSL, that is defined if there was no Ssl library found. There also is the method QSslSocket::supportsSsl(). But how are these two related, are they equivalent? Does QT_NO_SSL <=> QSslSocket::supportsSsl() returns false hold…
Ayonix
  • 1,872
  • 1
  • 15
  • 14
3
votes
1 answer

Qt SSl Error (QSslSocket: cannot resolve TLSv1_1_client_method)

I get the below error when I use setUrl("https://www.bing.com") of QWebView: QWebView *view = new QWebView(); view->setUrl(QUrl("https://www.bing.com")); view->show(); Error: QSslSocket: cannot resolve TLSv1_1_client_method QSslSocket: cannot…
codebase
  • 91
  • 1
  • 10
2
votes
2 answers

Do QTcpSocket or QSslSocket automatically create thread for reading/writing?

Despite not using std::thread or QThread anywhere, still getting following problems: Always a runtime debug error log from Qt: QObject::connect: Cannot queue arguments of type 'QAbstractSocket::SocketError' (Make sure…
iammilind
  • 68,093
  • 33
  • 169
  • 336
2
votes
1 answer

Troubles with Qt 5.6 QSsqlSocket in android 6

i have some troubles with the class QSslSocket in my app in android 6, I develop in Qt 5.6 and in the versions below of android 6 the app runs normally. The problems are the following: qt.network.ssl: QSslSocket: cannot resolve CRYPTO_free …
Jhonny Pinheiro
  • 308
  • 3
  • 19
2
votes
0 answers

Qt upload file to secure host through POST

I need to upload a file to a secure host using POST method. This is the code I tried (the file may have either text content or it may be an image. In case of image, as I see here, I can set the ContentTypeHeader to QVariant("image/jpeg"). So I will…
SexyBeast
  • 7,913
  • 28
  • 108
  • 196
2
votes
1 answer

Server memory growing

I am developing the download server in C++/Qt. I am facing the memory growing problem. Here I am sharing the sample server application to demonstrate the issue. When a client is connected it starts sending 10Kb data chunks every second. When a…
mentalmushroom
  • 2,261
  • 1
  • 26
  • 34
1
2 3 4