瀏覽代碼

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

bel 8 年之前
父節點
當前提交
9a6dbe40ba
共有 1 個文件被更改,包括 7 次插入0 次删除
  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++] = "8443s";
 	OPTIONS[opt_cnt++] = "ssl_certificate";
 	OPTIONS[opt_cnt++] = "ssl_certificate";
 	OPTIONS[opt_cnt++] = ssl_cert;
 	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++] = "ssl_protocol_version";
 	OPTIONS[opt_cnt++] = "4";
 	OPTIONS[opt_cnt++] = "4";
+#endif
 	ck_assert(ssl_cert != NULL);
 	ck_assert(ssl_cert != NULL);
 #endif
 #endif
 	OPTIONS[opt_cnt] = NULL;
 	OPTIONS[opt_cnt] = NULL;