From 3858a977c7fa10190df43e713943d1d953e70bd2 Mon Sep 17 00:00:00 2001 From: Twangboy Date: Thu, 8 Jan 2026 13:28:52 -0700 Subject: [PATCH] Preserve Case of minion config settings --- tests/windows/functional/test_parse_config.ps1 | 7 +++++++ windows/svtminion.ps1 | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/windows/functional/test_parse_config.ps1 b/tests/windows/functional/test_parse_config.ps1 index bbfe35b..9a0581a 100644 --- a/tests/windows/functional/test_parse_config.ps1 +++ b/tests/windows/functional/test_parse_config.ps1 @@ -14,3 +14,10 @@ function test__parse_config_extra_spaces { if ($result["id"] -ne "test_min") { return 1 } return 0 } + +function test__parse_config_preserve_case{ + $result = _parse_config -KeyValues "signing_algorithm=PKCS1v15-SHA224 encryption_algorithm=OAEP-SHA224" + if ($result["signing_algorithm"] -cne "PKCS1v15-SHA224") { return 1 } + if ($result["encryption_algorithm"] -cne "OAEP-SHA224") { return 1 } + return 0 +} diff --git a/windows/svtminion.ps1 b/windows/svtminion.ps1 index 7431171..0b14b30 100644 --- a/windows/svtminion.ps1 +++ b/windows/svtminion.ps1 @@ -287,7 +287,7 @@ if ($help) { } # This value is populated via CICD during build -$SCRIPT_VERSION = "2025.12.12" +$SCRIPT_VERSION = "SCRIPT_VERSION_REPLACE" if ($Version) { Write-Host $SCRIPT_VERSION exit 0 @@ -1129,7 +1129,7 @@ function _parse_config { Write-Log "Found config: $key_value" -Level debug $key, $value = $key_value -split "=" if ($value) { - $config_options[$key.ToLower()] = $value.ToLower() + $config_options[$key] = $value } else { Write-Log "No config value specified: $key_value" -Level warning }