diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-03-19 10:19:40 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-03-20 08:14:21 +0100 |
commit | 7550f62d079477413590ac79281159dbbde341b7 (patch) | |
tree | 9dbb5f6b4de11a6522f5627d8c5a8064fa9da2d9 | |
parent | dc5edf912495b521bcd223ce7f54f8da6b7e0c14 (diff) |
sectransp: tvOS 11 is required for ALPN support
Reported-by: nianxuejie on github
Assisted-by: Nick Zitzmann
Assisted-by: Jay Satiro
Fixes #3689
Closes #3690
-rw-r--r-- | lib/vtls/sectransp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/sectransp.c b/lib/vtls/sectransp.c index 949bd236b..971dd78e6 100644 --- a/lib/vtls/sectransp.c +++ b/lib/vtls/sectransp.c @@ -1577,7 +1577,7 @@ static CURLcode sectransp_connect_step1(struct connectdata *conn, #if (CURL_BUILD_MAC_10_13 || CURL_BUILD_IOS_11) && HAVE_BUILTIN_AVAILABLE == 1 if(conn->bits.tls_enable_alpn) { - if(__builtin_available(macOS 10.13.4, iOS 11, *)) { + if(__builtin_available(macOS 10.13.4, iOS 11, tvOS 11, *)) { CFMutableArrayRef alpnArr = CFArrayCreateMutable(NULL, 0, &kCFTypeArrayCallBacks); @@ -2628,7 +2628,7 @@ sectransp_connect_step2(struct connectdata *conn, int sockindex) #if(CURL_BUILD_MAC_10_13 || CURL_BUILD_IOS_11) && HAVE_BUILTIN_AVAILABLE == 1 if(conn->bits.tls_enable_alpn) { - if(__builtin_available(macOS 10.13.4, iOS 11, *)) { + if(__builtin_available(macOS 10.13.4, iOS 11, tvOS 11, *)) { CFArrayRef alpnArr = NULL; CFStringRef chosenProtocol = NULL; err = SSLCopyALPNProtocols(BACKEND->ssl_ctx, &alpnArr); |