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
5c3c86b0
Commit
5c3c86b0
authored
Dec 19, 2012
by
Vicent Martí
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1150 from schu/fix-netops-ssl
netops: on SSL teardown only send shutdown alert
parents
08a325a3
f2b00cbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
src/netops.c
+4
-7
No files found.
src/netops.c
View file @
5c3c86b0
...
@@ -198,10 +198,7 @@ static int gitno_ssl_teardown(gitno_ssl *ssl)
...
@@ -198,10 +198,7 @@ static int gitno_ssl_teardown(gitno_ssl *ssl)
{
{
int
ret
;
int
ret
;
do
{
ret
=
SSL_shutdown
(
ssl
->
ssl
);
ret
=
SSL_shutdown
(
ssl
->
ssl
);
}
while
(
ret
==
0
);
if
(
ret
<
0
)
if
(
ret
<
0
)
ret
=
ssl_set_error
(
ssl
,
ret
);
ret
=
ssl_set_error
(
ssl
,
ret
);
else
else
...
@@ -409,10 +406,10 @@ static int ssl_setup(gitno_socket *socket, const char *host, int flags)
...
@@ -409,10 +406,10 @@ static int ssl_setup(gitno_socket *socket, const char *host, int flags)
if
((
ret
=
SSL_connect
(
socket
->
ssl
.
ssl
))
<=
0
)
if
((
ret
=
SSL_connect
(
socket
->
ssl
.
ssl
))
<=
0
)
return
ssl_set_error
(
&
socket
->
ssl
,
ret
);
return
ssl_set_error
(
&
socket
->
ssl
,
ret
);
if
(
(
GITNO_CONNECT_SSL_NO_CHECK_CERT
&
flags
)
||
verify_server_cert
(
&
socket
->
ssl
,
host
)
<
0
)
if
(
GITNO_CONNECT_SSL_NO_CHECK_CERT
&
flags
)
return
-
1
;
return
0
;
return
0
;
return
verify_server_cert
(
&
socket
->
ssl
,
host
)
;
}
}
#endif
#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