curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Missing bcrytp.dll when running Watcom compiled Libcurl program on XP.

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Sun, 7 Jul 2019 02:09:31 -0400

On 7/3/2019 7:36 AM, Gisle Vanem via curl-library wrote:
> Dan Gribble wrote:
>
>> I have copied libcrypto-1_1.dll and libssl-1_1.dll (from openssl
>> 1.1.1c) to my application directory in order to run the compiled
>> application,
>> but other than that I have not done anything else.
>
> You have to rebuild OpenSSL with a '_WIN32_WINNT' value
> suitable for Win-XP ('-D_WIN32_WINNT=0x0501' should work
> I think). Or maybe lower the value in
> 'Configurations\50-win-onecore.conf'
>
> Look at OpenSSL's crypto/rand/rand_win.c where bcrypt.dll
> functions are used:
>
> ?? /* On Windows Vista or higher use BCrypt instead of the legacy
> CryptoAPI */
> ?? # if defined(_MSC_VER) && defined(_WIN32_WINNT) && _WIN32_WINNT >=
> 0x0600
> ?? #?? define USE_BCRYPTGENRANDOM
> ?? # endif

The OpenSSL that is provided on the Windows download page should work
for Windows XP. I suggest use that instead of your OpenSSL if you don't
want to build it yourself. https://curl.haxx.se/windows/

-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-07-07