How to tell Qt to use my SSL DLLs on Windows
-
I'm having a problem on a customer's computer because my Qt app is loading the wrong SSL DLLs on Windows 8. We ship our own SSL libraries, which are in the application directory, but from everything I have been reading, it seems that the dynamic loading by Qt doesn't include the application folder. It seems, almost inexplicably, to scan the entire PATH for them, which just doesn't make a lick of sense. So on my customer's computer, it is loading a 5 year old SSL dll, from Zeus knows where.
Is there any way, short of building a custom Qt, to have Qt look first in the application folder for libssl1-1.dll?
Jonathan
-
Hi,
Which version of Qt are you using ?
Because OpenSSL 1.1 is not that old, so you might be shipping the wrong dll and thus this other versions get found. -
And there's the issue. OpenSSL 1.1 broke both API and ABI with the 1.0 series. Until Qt 5.12.3 the pre-built package was built using OpenSSL 1.0. Since 5.12.4, it's built against OpenSSL 1.1. So you have two choices:
- Provide the latest 1.0 OpenSSL dlls
- Upgrade to Qt 5.12.4 or higher
-
In that case, go with solution 1 that will ensure hat everybody uses the correct OpenSSL dlls.
-
@jonathana
to add to @SGaist, you can also compile Qt 5.12 yourself with OpenSSL 1.1 support -
@raven-worx said in How to tell Qt to use my SSL DLLs on Windows:
@jonathana
to add to @SGaist, you can also compile Qt 5.12 yourself with OpenSSL 1.1 supportMaybe I'll try that. I've gotten pretty good at building Qt, at least as a stopgap until 5.12.5 comes out
-
@jonathana said in How to tell Qt to use my SSL DLLs on Windows:
until 5.12.5 comes out
Your wish is Qt company's command... see blog post as 5.12.5 was released yesterday.
-
@pablo-j-rogina Yay!