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

Most upvoted comments

Yes, thank you.

Worked on a clean “1.1.1b” without applying any fixes:

set LINK=/subsystem:console,5.01
perl Configure VC-WIN32 no-asm no-shared no-async -DOPENSSL_NO_ASYNC -D_WIN32_WINNT=0x0501 --prefix="D:\Visual Studio\openssl" -D_USING_V141_SDK71_

I gonna recheck again with “-D_WIN32_WINNT=0x501”.