openssl: "bcrypt.dll was not found" after compiling for Windows XP.
I’m compiling static openssl-1.1.1b using Visual Studio 2017 on Windows 10. The compilation process is flawless. Unfortunately, after including “libssl.lib” and “libcrypto.lib” to curl and testing it on Windows XP, I get the following error on launch: “The application has failed to start because bcrypt.dll was not found”. It doesn’t happen when I compile the old version: openssl-1.1.0e. Commands I’m using are the following:
set LINK=/subsystem:console,5.01
perl Configure VC-WIN32 no-asm no-shared no-async --prefix="D:\Visual Studio\openssl" -D_USING_V141_SDK71_
nmake
nmake test
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (10 by maintainers)
Commits related to this issue
- crypto/rand/rand_win.c: include "e_os.h" to get the default _WIN32_WINNT This helps decide if the BCrypt API should be used or not. Fixes #8635 — committed to levitte/openssl by levitte 5 years ago
- crypto/rand/rand_win.c: include "e_os.h" to get the default _WIN32_WINNT This helps decide if the BCrypt API should be used or not. Fixes #8635 Reviewed-by: Matt Caswell <matt@openssl.org> (Merged ... — committed to openssl/openssl by levitte 5 years ago
Yes, thank you.
Worked on a clean “1.1.1b” without applying any fixes:
I gonna recheck again with “-D_WIN32_WINNT=0x501”.