From ff21223f06f7a063f0169d8e635134a262597856 Mon Sep 17 00:00:00 2001 From: kagaminehaku Date: Tue, 17 Dec 2024 10:06:41 +0700 Subject: [PATCH] Removed the unused lines --- platform/opensslpatch.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/platform/opensslpatch.c b/platform/opensslpatch.c index d359d6c..f5532b7 100644 --- a/platform/opensslpatch.c +++ b/platform/opensslpatch.c @@ -36,7 +36,6 @@ static int is_env_variable_set(const char* variablename, const char* expectedval return 0; } -//Set User's Environment variable via registry static void openssl_patch(void) { const char* variablename = "OPENSSL_ia32cap"; const char* variablevalue = "~0x20000000"; @@ -64,18 +63,6 @@ static void openssl_patch(void) { } } -//Set environment variable for current process -// static void openssl_patch(void) { -// const wchar_t* variablename = L"OPENSSL_ia32cap"; -// const wchar_t* variablevalue = L"~0x20000000"; - -// if (SetEnvironmentVariableW(variablename, variablevalue)) { -// dprintf("OpenSSL Patch: Applied successfully, set the environment variable %ls to %ls\n", variablename, variablevalue); -// } else { -// dprintf("OpenSSL Patch: Error: Failed to set the environment variable.\n"); -// } -// } - HRESULT openssl_patch_apply(const struct openssl_patch_config *cfg) { HRESULT hr;