Skip to content

Commit 23b9c8e

Browse files
committed
curl.sh: drop SecureTransport hack with curl 8.9.0 [ci skip]
curl/curl@810933d curl/curl#13547
1 parent 7be70a4 commit 23b9c8e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

curl.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,10 @@ _VER="$1"
243243
# Another known deprecation issue:
244244
# curl/lib/vtls/sectransp.c:1206:7: warning: 'CFURLCreateDataAndPropertiesFromResource' is deprecated: first deprecated in macOS 10.9 - For resource data, use the CFReadStream API. For file resource properties, use CFURLCopyResourcePropertiesForKeys. [-Wdeprecated-declarations]
245245
options+=' -DCURL_USE_SECTRANSP=ON'
246-
# Without this, SecureTransport becomes the default TLS backend
247-
[ -n "${mainssl}" ] && options+=" -DCURL_DEFAULT_SSL_BACKEND=${mainssl}"
246+
if [ "${CURL_VER_}" = '8.8.0' ]; then
247+
# Without this, SecureTransport becomes the default TLS backend
248+
[ -n "${mainssl}" ] && options+=" -DCURL_DEFAULT_SSL_BACKEND=${mainssl}"
249+
fi
248250
fi
249251
else
250252
if [ "${_OS}" = 'win' ]; then

0 commit comments

Comments
 (0)