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
db3d169c
Commit
db3d169c
authored
Sep 24, 2014
by
Sven Strickroth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for host names
Signed-off-by: Sven Strickroth <email@cs-ware.de>
parent
e6e834a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tests/online/clone.c
+4
-2
No files found.
tests/online/clone.c
View file @
db3d169c
...
@@ -480,7 +480,6 @@ int ssh_certificate_check(git_cert *cert, int valid, const char *host, void *pay
...
@@ -480,7 +480,6 @@ int ssh_certificate_check(git_cert *cert, int valid, const char *host, void *pay
const
char
*
expected_str
;
const
char
*
expected_str
;
GIT_UNUSED
(
valid
);
GIT_UNUSED
(
valid
);
GIT_UNUSED
(
host
);
GIT_UNUSED
(
payload
);
GIT_UNUSED
(
payload
);
expected_str
=
cl_getenv
(
"GITTEST_REMOTE_SSH_FINGERPRINT"
);
expected_str
=
cl_getenv
(
"GITTEST_REMOTE_SSH_FINGERPRINT"
);
...
@@ -505,6 +504,8 @@ int ssh_certificate_check(git_cert *cert, int valid, const char *host, void *pay
...
@@ -505,6 +504,8 @@ int ssh_certificate_check(git_cert *cert, int valid, const char *host, void *pay
cl_assert
(
!
memcmp
(
&
expected
,
&
actual
,
20
));
cl_assert
(
!
memcmp
(
&
expected
,
&
actual
,
20
));
cl_assert_equal_s
(
"localhost"
,
host
);
return
GIT_EUSER
;
return
GIT_EUSER
;
}
}
...
@@ -551,9 +552,10 @@ static int succeed_certificate_check(git_cert *cert, int valid, const char *host
...
@@ -551,9 +552,10 @@ static int succeed_certificate_check(git_cert *cert, int valid, const char *host
{
{
GIT_UNUSED
(
cert
);
GIT_UNUSED
(
cert
);
GIT_UNUSED
(
valid
);
GIT_UNUSED
(
valid
);
GIT_UNUSED
(
host
);
GIT_UNUSED
(
payload
);
GIT_UNUSED
(
payload
);
cl_assert_equal_s
(
"github.com"
,
host
);
return
0
;
return
0
;
}
}
...
...
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