use the other common name for newer openssl

This commit is contained in:
Adam D. Ruppe 2022-04-06 11:57:01 -04:00
parent 77c11d27a5
commit 2fb96cc507
1 changed files with 8 additions and 6 deletions

14
http2.d
View File

@ -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);