Explorar o código

The Apple builds on Travis CI seem to have problems with TLS1.2

bel %!s(int64=8) %!d(string=hai) anos
pai
achega
9a6dbe40ba
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      test/public_server.c

+ 7 - 0
test/public_server.c

@@ -3760,8 +3760,15 @@ START_TEST(test_large_file)
 	OPTIONS[opt_cnt++] = "8443s";
 	OPTIONS[opt_cnt++] = "ssl_certificate";
 	OPTIONS[opt_cnt++] = ssl_cert;
+#ifdef __MACH__
+    /* The Apple builds on Travis CI seem to have problems with TLS1.2 */
+	OPTIONS[opt_cnt++] = "ssl_protocol_version";
+	OPTIONS[opt_cnt++] = "3";
+#else
+    /* The Linux builds on Travis CI work fine with TLS1.2 */
 	OPTIONS[opt_cnt++] = "ssl_protocol_version";
 	OPTIONS[opt_cnt++] = "4";
+#endif
 	ck_assert(ssl_cert != NULL);
 #endif
 	OPTIONS[opt_cnt] = NULL;