mirror of https://github.com/procxx/kepka.git
Force OpenSSL not loading local config.
This commit is contained in:
parent
a04247a893
commit
7c2f114330
|
@ -26,6 +26,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
#include "platform/win/wrapper_wrl_implements_h.h"
|
#include "platform/win/wrapper_wrl_implements_h.h"
|
||||||
#include <windows.ui.notifications.h>
|
#include <windows.ui.notifications.h>
|
||||||
|
|
||||||
|
#include <openssl/conf.h>
|
||||||
|
|
||||||
#include <dbghelp.h>
|
#include <dbghelp.h>
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
#include <Shlwapi.h>
|
#include <Shlwapi.h>
|
||||||
|
@ -275,6 +277,15 @@ int psFixPrevious() {
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace Platform {
|
namespace Platform {
|
||||||
|
namespace ThirdParty {
|
||||||
|
|
||||||
|
void start() {
|
||||||
|
// Force OpenSSL skipping the config by passing an invalid filename.
|
||||||
|
qputenv("OPENSSL_CONF", ":/:");
|
||||||
|
OPENSSL_config(nullptr);
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace ThirdParty
|
||||||
|
|
||||||
void start() {
|
void start() {
|
||||||
Dlls::init();
|
Dlls::init();
|
||||||
|
|
|
@ -40,8 +40,7 @@ QString CurrentExecutablePath(int argc, char *argv[]);
|
||||||
|
|
||||||
namespace ThirdParty {
|
namespace ThirdParty {
|
||||||
|
|
||||||
inline void start() {
|
void start();
|
||||||
}
|
|
||||||
|
|
||||||
inline void finish() {
|
inline void finish() {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue