Hi,
I have found a solution.
The problem I'm facing is that I haven't chosen the right version, so first choose the right version of OpenSSH, use below command to get the version QT looking for and find the nearest version of OpenSSH
qDebug()<<"SSL Lib Version "<<QSslSocket::sslLibraryBuildVersionString()
qDebug()<<"SSL Lib Version "<<QSslSocket::sslLibraryBuildVersionString()
To copy to clipboard, switch view to plain text mode
Now find and download that nearest or exact version of OpenSSH on ftp://ftp.openssl.org/source
You need Perl, so install it from https://www.activestate.com/products...erl/downloads/. I have used ActivePerl 5.26 version.
Open compiler as an administrator, VS2015 x64 Native Tools Command Prompt (hope you have that as we need nmake tool to build it).
Follow the path of your SSH lib and use below command to build it.
- perl Configure VC-WIN64A no-asm --prefix=E:\ssl
- ms\do_nasm.bat
- nmake -f ms\ntdll.mak
- nmake -f ms\ntdll.mak install
Hope now you will have all dll/lib/includes in E:\ssl folder.
Now in project file just add below two lines which will copies that dll beside your application.
dependencies.files += $${YOURPATH}/ssl/bin/libeay32.dll
dependencies.files += $${YOURPATH}/ssl/bin/ssleay32.dll
dependencies.files += $${YOURPATH}/ssl/bin/libeay32.dll
dependencies.files += $${YOURPATH}/ssl/bin/ssleay32.dll
To copy to clipboard, switch view to plain text mode
Horrreeyyy, now you shlould get rid-off from this error (Error creating SSL context () )
Cheers
Bookmarks