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: How to build libcurl with OpenSSL without installing the latter?

From: Daniel Gustafsson via curl-library <>
Date: Thu, 11 Nov 2021 10:07:47 +0100

> On 10 Nov 2021, at 15:10, ellie via curl-library <> wrote:

> I have also noticed as a side note that for a Windows build with autotools, it seems to be impossible to avoid including code that needs a link to crypt32/wincrypt, even when I want to use OpenSSL & custom cert store only. If there is an option to prevent that I didn't find it. This is somewhat relevant to me because I'm about to try a Windows XP-compatible build, so having unnecessary exposure to WinAPI of things I don't want it to use anyway is a bit of a liability (although might not be an issue in practice, I'll know soon after tests).

I don't know much about Windows, but I would recommend playing around with
USE_WIN32_CRYPTO - which is checked for automatically by ./configure - as that
macro will include wincrypt.h.

Daniel Gustafsson
Received on 2021-11-11