QSslSocket: cannot resolve SSLV2_client_method
Asked Answered
R

1

7

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 resolve SSLV2_client_method) in constractor.

this is 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()));


}
Rabies answered 27/5, 2015 at 5:14 Comment(5)
Have you installed OpenSSL on your system?Whomsoever
Yes i have installed openssl 1.0.1Rabies
Which operating system are you on?Kathlenekathlin
I have debian wheezy on my systemRabies
Some Linux distributions configure SSL2 out of OpenSSL, because they think it's not secure. May be that's the reason of the warning. Try to install another version of OpenSSL.Whomsoever
R
2

The problem has solved by compiling openssl as shared library.

Rabies answered 8/6, 2015 at 8:48 Comment(3)
Instructions how to do this would be great!Enrique
Just try to compile openssl on your system. Instruction for do this published over the internet.Rabies
@emolaus, Installing Qt 5.5.1 on Ubuntu 14.04 - throws qt.network.ssl error on terminalCanned

© 2022 - 2024 — McMap. All rights reserved.