]> git.ipfire.org Git - thirdparty/curl.git/commit
vtls: fix default SSL backend as a fallback
authorJay Satiro <raysatiro@yahoo.com>
Tue, 28 Jan 2025 04:48:18 +0000 (23:48 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 28 Jan 2025 08:29:35 +0000 (03:29 -0500)
commite2ec7bf1b40d20338c7db18932160cd01a125007
treeda85da1421dd82028d17306efcbd3e707f6dc0b2
parent4f99efb192590ec7263d1f88de99a03dbe469970
vtls: fix default SSL backend as a fallback

- Use build-time CURL_DEFAULT_SSL_BACKEND as a fallback when environment
  variable CURL_SSL_BACKEND contains a backend that is unavailable.

Prior to this change if CURL_SSL_BACKEND was set then
CURL_DEFAULT_SSL_BACKEND was ignored even if the backend of the former
was unavailable. In that case libcurl would instead select the first
available backend in the list of backends.

Bug: https://github.com/curl/curl/issues/16076#issuecomment-2617354254
Reported-by: Jeroen Ooms
Closes https://github.com/curl/curl/pull/16108
lib/vtls/vtls.c