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
8ec0a552
Commit
8ec0a552
authored
Apr 18, 2014
by
Jacques Germishuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make git_cred_ssh_custom_new() naming more consistent
parent
478408c0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
include/git2/transport.h
+5
-5
src/transports/cred.c
+2
-2
src/transports/ssh.c
+1
-1
No files found.
include/git2/transport.h
View file @
8ec0a552
...
...
@@ -99,7 +99,7 @@ typedef struct git_cred_ssh_custom {
char
*
publickey
;
size_t
publickey_len
;
void
*
sign_callback
;
void
*
sign_data
;
void
*
payload
;
}
git_cred_ssh_custom
;
/** A key for NTLM/Kerberos "default" credentials */
...
...
@@ -186,8 +186,8 @@ GIT_EXTERN(int) git_cred_ssh_key_from_agent(
* @param username username to use to authenticate
* @param publickey The bytes of the public key.
* @param publickey_len The length of the public key in bytes.
* @param sign_
fn
The callback method to sign the data during the challenge.
* @param
sign_data The data to pass to the sign function
.
* @param sign_
callback
The callback method to sign the data during the challenge.
* @param
payload Additional data to pass to the callback
.
* @return 0 for success or an error code for failure
*/
GIT_EXTERN
(
int
)
git_cred_ssh_custom_new
(
...
...
@@ -195,8 +195,8 @@ GIT_EXTERN(int) git_cred_ssh_custom_new(
const
char
*
username
,
const
char
*
publickey
,
size_t
publickey_len
,
git_cred_sign_callback
sign_
fn
,
void
*
sign_data
);
git_cred_sign_callback
sign_
callback
,
void
*
payload
);
/**
* Create a "default" credential usable for Negotiate mechanisms like NTLM
...
...
src/transports/cred.c
View file @
8ec0a552
...
...
@@ -204,7 +204,7 @@ int git_cred_ssh_custom_new(
const
char
*
publickey
,
size_t
publickey_len
,
git_cred_sign_callback
sign_callback
,
void
*
sign_data
)
void
*
payload
)
{
git_cred_ssh_custom
*
c
;
...
...
@@ -228,7 +228,7 @@ int git_cred_ssh_custom_new(
c
->
publickey_len
=
publickey_len
;
c
->
sign_callback
=
sign_callback
;
c
->
sign_data
=
sign_data
;
c
->
payload
=
payload
;
*
cred
=
&
c
->
parent
;
return
0
;
...
...
src/transports/ssh.c
View file @
8ec0a552
...
...
@@ -310,7 +310,7 @@ static int _git_ssh_authenticate_session(
rc
=
libssh2_userauth_publickey
(
session
,
c
->
username
,
(
const
unsigned
char
*
)
c
->
publickey
,
c
->
publickey_len
,
c
->
sign_callback
,
&
c
->
sign_data
);
c
->
publickey_len
,
c
->
sign_callback
,
&
c
->
payload
);
break
;
}
case
GIT_CREDTYPE_SSH_INTERACTIVE
:
{
...
...
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