Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
fc3ef147
Commit
fc3ef147
authored
Sep 28, 2015
by
Edward Thomson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3441 from libgit2/cmn/badssl
net: add tests against badssl.com
parents
5c5df666
53a28705
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
tests/online/badssl.c
+27
-0
No files found.
tests/online/badssl.c
0 → 100644
View file @
fc3ef147
#include "clar_libgit2.h"
#include "git2/clone.h"
static
git_repository
*
g_repo
;
#if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT)
void
test_online_badssl__expired
(
void
)
{
cl_git_fail_with
(
GIT_ECERTIFICATE
,
git_clone
(
&
g_repo
,
"https://expired.badssl.com/fake.git"
,
"./fake"
,
NULL
));
}
void
test_online_badssl__wrong_host
(
void
)
{
cl_git_fail_with
(
GIT_ECERTIFICATE
,
git_clone
(
&
g_repo
,
"https://wrong.host.badssl.com/fake.git"
,
"./fake"
,
NULL
));
}
void
test_online_badssl__self_signed
(
void
)
{
cl_git_fail_with
(
GIT_ECERTIFICATE
,
git_clone
(
&
g_repo
,
"https://self-signed.badssl.com/fake.git"
,
"./fake"
,
NULL
));
}
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment