https://github.com/FreeRDP/FreeRDP/pull/12746 From e9b95a5a3cf6a182837773b92c825f48df953821 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Wed, 6 May 2026 12:17:23 -0400 Subject: [PATCH] Call winpr_InitializeSSL in TestWinPRUtils/TestNTLM This is needed to load the OpenSSL legacy provider when that library is in use. Closes: https://github.com/FreeRDP/FreeRDP/issues/12744 --- winpr/libwinpr/utils/test/TestNTLM.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/winpr/libwinpr/utils/test/TestNTLM.c b/winpr/libwinpr/utils/test/TestNTLM.c index 4421270ef9de..b8838aaee2f8 100644 --- a/winpr/libwinpr/utils/test/TestNTLM.c +++ b/winpr/libwinpr/utils/test/TestNTLM.c @@ -2,6 +2,7 @@ #include #include #include +#include typedef struct { @@ -311,6 +312,9 @@ static BOOL testNTOWFv2FromHash(size_t x, const test_case_from_hash_t* test) int TestNTLM(WINPR_ATTR_UNUSED int argc, WINPR_ATTR_UNUSED char* argv[]) { + /* Make sure we load the OpenSSL legacy provider if needed */ + winpr_InitializeSSL(WINPR_SSL_INIT_DEFAULT); + for (size_t x = 0; x < ARRAYSIZE(ntofw1tests); x++) { const test_case_ntowf1_t* cur = &ntofw1tests[x];