]> granicus.if.org Git - curl/commitdiff
sectransp: tvOS 11 is required for ALPN support
authorDaniel Stenberg <daniel@haxx.se>
Tue, 19 Mar 2019 09:19:40 +0000 (10:19 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 20 Mar 2019 07:14:21 +0000 (08:14 +0100)
Reported-by: nianxuejie on github
Assisted-by: Nick Zitzmann
Assisted-by: Jay Satiro
Fixes #3689
Closes #3690

lib/vtls/sectransp.c

index 949bd236be8f6a2aa327c83d9625e7b4d16ed124..971dd78e6a2550dd811b39035b67c7c9c2b29f1d 100644 (file)
@@ -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);