OpenSSL version in console. How?
Solved
General and Desktop
-
wrote on 26 Jan 2020, 18:08 last edited by
Hello all!
I need to get the version of OpenSSL that used in Qt Application and from which *.so file it's gotten? Is there way to do it? -
wrote on 26 Jan 2020, 18:19 last edited by bogong
Issue closed. Solution found.
#include "/Path/To/OpenSSL/include/opensslv.h" qDebug() << QString(OPENSSL_VERSION_TEXT);
Will print in console something like this:
OpenSSL 1.1.1c 28 May 2019
-
Issue closed. Solution found.
#include "/Path/To/OpenSSL/include/opensslv.h" qDebug() << QString(OPENSSL_VERSION_TEXT);
Will print in console something like this:
OpenSSL 1.1.1c 28 May 2019
@bogong
this will output the version string at build time.
During runtime some other version could be loaded.
Use QSslSocket::sslLibraryVersionString() for this case
1/3