diff options
| author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2016-11-29 14:25:04 +0100 |
|---|---|---|
| committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2017-02-11 19:04:28 +0000 |
| commit | dbb2374d20959472ca379a38c37774518eef5bfe (patch) | |
| tree | 7fb754b00f17414e3060710c57821a351687ff97 /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | 17927392cf1cecb20cef7cb9cd77131391de087c (diff) | |
Workaround the broken 'OPENSSL_config' (Windows)
In old versions of OpenSSL this function can try to access a config file
sometimes resulting in EACCES. While handling ENOENT correctly, OPENSSL_config
unconditionally calls std::exit on EACCES, which is unacceptable, especially if we
have a Qt-app which is not using SSL at all (but, for example, is using QNAM).
To workaround this, we pre-test if this file can be opened and if not and the
last error is ERR_R_SYS_LIB we just skip q_OPENSSL_add_all_algorithms call.
Task-number: QTBUG-43843
Change-Id: I309172d3b5e7847f67a87ba33c406d4751bc60ca
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
