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
fbdf5bdd
Commit
fbdf5bdd
authored
Nov 16, 2019
by
kas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds support for multiple SSH auth mechanisms being used sequentially
parent
01ea911b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
src/transports/ssh.c
+10
-0
No files found.
src/transports/ssh.c
View file @
fbdf5bdd
...
...
@@ -518,6 +518,7 @@ static int _git_ssh_setup_conn(
{
git_net_url
urldata
=
GIT_NET_URL_INIT
;
int
auth_methods
,
error
=
0
;
int
sub_error
;
size_t
i
;
ssh_stream
*
s
;
git_cred
*
cred
=
NULL
;
...
...
@@ -638,6 +639,15 @@ post_extract:
}
error
=
_git_ssh_authenticate_session
(
session
,
cred
);
if
(
error
==
GIT_EAUTH
)
{
/* refresh auth methods */
sub_error
=
list_auth_methods
(
&
auth_methods
,
session
,
urldata
.
username
);
if
(
sub_error
<
0
)
{
error
=
sub_error
;
goto
done
;
}
}
}
if
(
error
<
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