I am having trouble compiling the sample program with MinGW, and I suspect (but am not certain) that the openssl version detection is not working in src/openssl/lib_ssl.cr.
I should break the problem down a bit more to identify it, but I’m too lazy to report it, so I’ll just note it here.
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: _main.o0.obj: in function `__crystal_main':
D:\a\_temp\msys64\mingw64\share\crystal\src\openssl/lib_ssl.cr:304:(.text+0x3e9): undefined reference to `SSL_library_init'
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\a\_temp\msys64\mingw64\share\crystal\src\openssl/lib_ssl.cr:304:(.text+0x3ee): undefined reference to `SSL_load_error_strings'
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\a\_temp\msys64\mingw64\share\crystal\src\openssl/lib_ssl.cr:304:(.text+0x3f3): undefined reference to `OPENSSL_add_all_algorithms_noconf'
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D:\a\_temp\msys64\mingw64\share\crystal\src\openssl/lib_ssl.cr:304:(.text+0x3f8): undefined reference to `ERR_load_crypto_strings'
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D-igest5858M-D-5.o0.obj: in function `new_evp_mt_ctx':
D:\a\_temp\msys64\mingw64\share\crystal\src\openssl/digest.cr:26:(.text+0xec): undefined reference to `EVP_MD_CTX_create'
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D-igest5858M-D-5.o0.obj: in function `finalize':
D:\a\_temp\msys64\mingw64\share\crystal\src\openssl/digest.cr:38:(.text+0x179): undefined reference to `EVP_MD_CTX_destroy'
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/15.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: D-igest5858M-D-5.o0.obj: in function `digest_size':
D:\a\_temp\msys64\mingw64\share\crystal\src\openssl/digest.cr:77:(.text+0x8bd): undefined reference to `EVP_MD_size'