mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-25 06:53:05 +00:00
http: correct the expected error for RC4
We must make sure that we're getting a certificate error from the library so we know that we're testing the right thing.
This commit is contained in:
parent
a5cf255b47
commit
3829ba2e71
@ -70,6 +70,8 @@ void test_online_badssl__old_cipher(void)
|
|||||||
if (!g_has_ssl)
|
if (!g_has_ssl)
|
||||||
cl_skip();
|
cl_skip();
|
||||||
|
|
||||||
cl_git_fail(git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", NULL));
|
cl_git_fail_with(GIT_ECERTIFICATE,
|
||||||
cl_git_fail(git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", &opts));
|
git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", NULL));
|
||||||
|
cl_git_fail_with(GIT_ECERTIFICATE,
|
||||||
|
git_clone(&g_repo, "https://rc4.badssl.com/fake.git", "./fake", &opts));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user