From 2fb96cc5074fca20db89611e0e1ecc7c71e8c883 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 6 Apr 2022 11:57:01 -0400 Subject: [PATCH] use the other common name for newer openssl --- http2.d | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/http2.d b/http2.d index 65c6522..4833243 100644 --- a/http2.d +++ b/http2.d @@ -3069,12 +3069,14 @@ version(use_openssl) { if(ossllib_handle is null) ossllib_handle = dlopen("libssl.so", RTLD_NOW); } else version(Windows) { - //ossllib_handle = LoadLibraryW("libssl-1_1-x64.dll"w.ptr); - //if(ossllib_handle is null) - ossllib_handle = LoadLibraryW("libssl32.dll"w.ptr); - //oeaylib_handle = LoadLibraryW("libcrypto-1_1-x64.dll"w.ptr); - //if(oeaylib_handle) - oeaylib_handle = LoadLibraryW("libeay32.dll"w.ptr); + version(X86_64) + ossllib_handle = LoadLibraryW("libssl-1_1-x64.dll"w.ptr); + if(ossllib_handle is null) + ossllib_handle = LoadLibraryW("libssl32.dll"w.ptr); + version(X86_64) + oeaylib_handle = LoadLibraryW("libcrypto-1_1-x64.dll"w.ptr); + if(oeaylib_handle is null) + oeaylib_handle = LoadLibraryW("libeay32.dll"w.ptr); if(ossllib_handle is null) { ossllib_handle = LoadLibraryW("ssleay32.dll"w.ptr);