QSslSocket: cannot enable SSLV2_client_method

I created sslclient and sslserver using QSslSocket in Qt 5.4.1 in debian wheezy. When I run the program, they do not work at all. After debugging my code, which I saw when he was trying to create a new object from QSslSocket , it returns this error ( cannot resolve SSLV2_client_method ) in constractor.

this is the block of my code:

 SSlClient::SSlClient(QObject *parent) : QObject(parent) { client = new QSslSocket(this); client->setProtocol(QSsl::SslV3); connect(client, SIGNAL(encrypted()), this, SLOT(startTransfer())); connect(client, SIGNAL(encryptedBytesWritten(qint64)), this, SLOT(byteWritten())); } 
+7
qt client-server qtcpsocket qsslsocket qtcpserver
source share
1 answer

The problem is solved by compiling openssl as a shared library.

+2
source share

All Articles