B
B
Blunker2017-05-27 20:02:45
Qt
Blunker, 2017-05-27 20:02:45

How to connect openssl to qt?

There is a project on qt with the connected library "SmtpClient-for-Qt-1.1". But when trying to send a letter, qt swears:

qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
qt.network.ssl: QSslSocket: cannot call unresolved function d2i_DHparams
qt.network.ssl: QSslSocket: cannot call unresolved function DH_free
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState
QAbstractSocket::waitForBytesWritten() is not allowed in UnconnectedState

Added network to .pro file. Download and install openssl. Copied the necessary dll folder qt. Nothing helped.
P.S. Windows 10 OS

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ighor July, 2017-05-27
@IGHOR

Qt from their repository only works with OpenSSL 1.0.x

T
Tesla4o, 2018-11-28
@Tesla4o

in the .PRO file add the line
LIBS -L/path to openssl.dll/ -lopenssl
Try this. Usually, this is how they link!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question