File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 55static git_repository * g_repo ;
66
77#if defined(GIT_OPENSSL ) || defined(GIT_WINHTTP ) || defined(GIT_SECURE_TRANSPORT )
8+ static bool g_has_ssl = true;
9+ #else
10+ static bool g_has_ssl = false;
11+ #endif
812
913void test_online_badssl__expired (void )
1014{
15+ if (!g_has_ssl )
16+ cl_skip ();
17+
1118 cl_git_fail_with (GIT_ECERTIFICATE ,
1219 git_clone (& g_repo , "https://expired.badssl.com/fake.git" , "./fake" , NULL ));
1320}
1421
1522void test_online_badssl__wrong_host (void )
1623{
24+ if (!g_has_ssl )
25+ cl_skip ();
26+
1727 cl_git_fail_with (GIT_ECERTIFICATE ,
1828 git_clone (& g_repo , "https://wrong.host.badssl.com/fake.git" , "./fake" , NULL ));
1929}
2030
2131void test_online_badssl__self_signed (void )
2232{
33+ if (!g_has_ssl )
34+ cl_skip ();
35+
2336 cl_git_fail_with (GIT_ECERTIFICATE ,
2437 git_clone (& g_repo , "https://self-signed.badssl.com/fake.git" , "./fake" , NULL ));
2538}
26-
27- #endif
You can’t perform that action at this time.
0 commit comments