File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 5
5
static git_repository * g_repo ;
6
6
7
7
#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
8
12
9
13
void test_online_badssl__expired (void )
10
14
{
15
+ if (!g_has_ssl )
16
+ cl_skip ();
17
+
11
18
cl_git_fail_with (GIT_ECERTIFICATE ,
12
19
git_clone (& g_repo , "https://expired.badssl.com/fake.git" , "./fake" , NULL ));
13
20
}
14
21
15
22
void test_online_badssl__wrong_host (void )
16
23
{
24
+ if (!g_has_ssl )
25
+ cl_skip ();
26
+
17
27
cl_git_fail_with (GIT_ECERTIFICATE ,
18
28
git_clone (& g_repo , "https://wrong.host.badssl.com/fake.git" , "./fake" , NULL ));
19
29
}
20
30
21
31
void test_online_badssl__self_signed (void )
22
32
{
33
+ if (!g_has_ssl )
34
+ cl_skip ();
35
+
23
36
cl_git_fail_with (GIT_ECERTIFICATE ,
24
37
git_clone (& g_repo , "https://self-signed.badssl.com/fake.git" , "./fake" , NULL ));
25
38
}
26
-
27
- #endif
You can’t perform that action at this time.
0 commit comments