Skip to content

Commit f70ca1a

Browse files
committed
Also override OPENSSL_ENGINES to prevent DLL injection (#13124)
1 parent d5fe2f0 commit f70ca1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ int main(int argc, char** argv)
5454
QT_REQUIRE_VERSION(argc, argv, QT_VERSION_STR)
5555

5656
#ifdef Q_OS_WIN
57-
// Set OPENSSL_CONF and OPENSSL_MODULES to an invalid location to prevent DLL injection via openssl.cnf.
57+
// Set OPENSSL_* variables to an invalid location to prevent DLL injection via openssl.cnf.
5858
// vcpkg by default hard-codes this to its packages location, which may be user-writable.
5959
qputenv("OPENSSL_CONF", "::");
6060
qputenv("OPENSSL_MODULES", "::");
61+
qputenv("OPENSSL_ENGINES", "::");
6162
#endif
6263

6364
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

0 commit comments

Comments
 (0)