2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Force OpenSSL not loading local config.

This commit is contained in:
John Preston
2019-06-24 12:49:37 +02:00
parent a04247a893
commit 7c2f114330
2 changed files with 12 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "platform/win/wrapper_wrl_implements_h.h"
#include <windows.ui.notifications.h>
#include <openssl/conf.h>
#include <dbghelp.h>
#include <shlobj.h>
#include <Shlwapi.h>
@@ -275,6 +277,15 @@ int psFixPrevious() {
}
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() {
Dlls::init();