summaryrefslogtreecommitdiff
path: root/tests/online
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-08-29 21:25:13 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-09-16 17:01:31 +0200
commit23ca0ad5ebcba3173ba3ff51e8114c33f795e62a (patch)
treeecf4c9ba3c1fa1ab35f8cdd8c71975be7d685818 /tests/online
parent2f5864c50c3c82d01837570cb0b7e629295c65cf (diff)
downloadlibgit2-23ca0ad5ebcba3173ba3ff51e8114c33f795e62a.tar.gz
Bring certificate check back to the normal return code
Returning 0 lets the certificate check succeed. An error code is bubbled up to the user.
Diffstat (limited to 'tests/online')
-rw-r--r--tests/online/clone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/online/clone.c b/tests/online/clone.c
index 66e614e15..a880d47d9 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -478,7 +478,7 @@ static int fail_certificate_check(git_cert_t type, void *data, size_t len, int v
GIT_UNUSED(valid);
GIT_UNUSED(payload);
- return 0;
+ return GIT_ECERTIFICATE;
}
void test_online_clone__certificate_invalid(void)
@@ -500,7 +500,7 @@ static int succeed_certificate_check(git_cert_t type, void *data, size_t len, in
GIT_UNUSED(valid);
GIT_UNUSED(payload);
- return 1;
+ return 0;
}
void test_online_clone__certificate_valid(void)