Curl with openssl

Is there a compiled version of curl using openssl instead of mbedtls?

There's no need, curl picks up whatever ssl solution you have installed. If you have libopenssl (or libmbedtls or libwolfssl) installed, that's what it will use.

Not quite true, I have installed openssl for vpn. It look like curl compiled with libmbedtls

root@repeater:~# opkg info curl
Package: curl
Version: 8.10.1-r1
Depends: libc, libcurl4
Status: unknown ok not-installed
Section: net
Architecture: aarch64_cortex-a53
Size: 67776
Filename: curl_8.10.1-r1_aarch64_cortex-a53.ipk
Description: A client-side URL transfer utility

root@repeater:~# opkg info libcurl4
Package: libcurl4
Version: 8.10.1-r1
Depends: libc, libmbedtls21, libnghttp2-14, ca-bundle
Provides: libcurl
Status: unknown ok not-installed
Section: libs
Architecture: aarch64_cortex-a53
Size: 230738
Filename: libcurl4_8.10.1-r1_aarch64_cortex-a53.ipk
Description: A client-side URL transfer library

Not from OpenWrt, no. There are technical issues preventing proper flavours building for curl (like there are different SSL libs flavours for some other packages), so you'd need to rebuild it yourself from source/SDK.

PS. There was a third party github repo with CI jobs set to build curl with the patched OpenSSL version supporting HTTP/3 for all supported platforms, but I can't recall a repo name nor how current version of curl it was building.

1 Like

That would be news to me.
To my knowledge, the OpenWrt curl has a compile time option for selecting the SSL library, but there is no versatility during runtime.