mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 14:39:10 +00:00
Make git_cred_ssh_custom_new() naming more consistent
This commit is contained in:
parent
478408c010
commit
8ec0a55273
@ -99,7 +99,7 @@ typedef struct git_cred_ssh_custom {
|
|||||||
char *publickey;
|
char *publickey;
|
||||||
size_t publickey_len;
|
size_t publickey_len;
|
||||||
void *sign_callback;
|
void *sign_callback;
|
||||||
void *sign_data;
|
void *payload;
|
||||||
} git_cred_ssh_custom;
|
} git_cred_ssh_custom;
|
||||||
|
|
||||||
/** A key for NTLM/Kerberos "default" credentials */
|
/** 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 username username to use to authenticate
|
||||||
* @param publickey The bytes of the public key.
|
* @param publickey The bytes of the public key.
|
||||||
* @param publickey_len The length of the public key in bytes.
|
* @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_callback The callback method to sign the data during the challenge.
|
||||||
* @param sign_data The data to pass to the sign function.
|
* @param payload Additional data to pass to the callback.
|
||||||
* @return 0 for success or an error code for failure
|
* @return 0 for success or an error code for failure
|
||||||
*/
|
*/
|
||||||
GIT_EXTERN(int) git_cred_ssh_custom_new(
|
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 *username,
|
||||||
const char *publickey,
|
const char *publickey,
|
||||||
size_t publickey_len,
|
size_t publickey_len,
|
||||||
git_cred_sign_callback sign_fn,
|
git_cred_sign_callback sign_callback,
|
||||||
void *sign_data);
|
void *payload);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a "default" credential usable for Negotiate mechanisms like NTLM
|
* Create a "default" credential usable for Negotiate mechanisms like NTLM
|
||||||
|
@ -204,7 +204,7 @@ int git_cred_ssh_custom_new(
|
|||||||
const char *publickey,
|
const char *publickey,
|
||||||
size_t publickey_len,
|
size_t publickey_len,
|
||||||
git_cred_sign_callback sign_callback,
|
git_cred_sign_callback sign_callback,
|
||||||
void *sign_data)
|
void *payload)
|
||||||
{
|
{
|
||||||
git_cred_ssh_custom *c;
|
git_cred_ssh_custom *c;
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ int git_cred_ssh_custom_new(
|
|||||||
|
|
||||||
c->publickey_len = publickey_len;
|
c->publickey_len = publickey_len;
|
||||||
c->sign_callback = sign_callback;
|
c->sign_callback = sign_callback;
|
||||||
c->sign_data = sign_data;
|
c->payload = payload;
|
||||||
|
|
||||||
*cred = &c->parent;
|
*cred = &c->parent;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -310,7 +310,7 @@ static int _git_ssh_authenticate_session(
|
|||||||
|
|
||||||
rc = libssh2_userauth_publickey(
|
rc = libssh2_userauth_publickey(
|
||||||
session, c->username, (const unsigned char *)c->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;
|
break;
|
||||||
}
|
}
|
||||||
case GIT_CREDTYPE_SSH_INTERACTIVE: {
|
case GIT_CREDTYPE_SSH_INTERACTIVE: {
|
||||||
|
Loading…
Reference in New Issue
Block a user