mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 23:55:12 +00:00
Version 1.7.10: Don't load OpenSSL config on Win.
This commit is contained in:
@@ -27,6 +27,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
#include <windows.ui.notifications.h>
|
#include <windows.ui.notifications.h>
|
||||||
|
|
||||||
#include <openssl/conf.h>
|
#include <openssl/conf.h>
|
||||||
|
#include <openssl/engine.h>
|
||||||
|
#include <openssl/err.h>
|
||||||
|
|
||||||
#include <dbghelp.h>
|
#include <dbghelp.h>
|
||||||
#include <shlobj.h>
|
#include <shlobj.h>
|
||||||
@@ -278,11 +280,20 @@ int psFixPrevious() {
|
|||||||
|
|
||||||
namespace Platform {
|
namespace Platform {
|
||||||
namespace ThirdParty {
|
namespace ThirdParty {
|
||||||
|
namespace {
|
||||||
|
|
||||||
|
void StartOpenSSL() {
|
||||||
|
// Don't use dynamic OpenSSL config, it can load unwanted DLLs.
|
||||||
|
OPENSSL_load_builtin_modules();
|
||||||
|
ENGINE_load_builtin_engines();
|
||||||
|
ERR_clear_error();
|
||||||
|
OPENSSL_no_config();
|
||||||
|
}
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
void start() {
|
void start() {
|
||||||
// Force OpenSSL skipping the config by passing an invalid filename.
|
StartOpenSSL();
|
||||||
qputenv("OPENSSL_CONF", ":/:");
|
|
||||||
OPENSSL_config(nullptr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ThirdParty
|
} // namespace ThirdParty
|
||||||
|
Reference in New Issue
Block a user