File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ typedef struct git_cred_ssh_custom {
99
99
char * publickey ;
100
100
size_t publickey_len ;
101
101
void * sign_callback ;
102
- void * sign_data ;
102
+ void * payload ;
103
103
} git_cred_ssh_custom ;
104
104
105
105
/** A key for NTLM/Kerberos "default" credentials */
@@ -186,17 +186,17 @@ GIT_EXTERN(int) git_cred_ssh_key_from_agent(
186
186
* @param username username to use to authenticate
187
187
* @param publickey The bytes of the public key.
188
188
* @param publickey_len The length of the public key in bytes.
189
- * @param sign_fn The callback method to sign the data during the challenge.
190
- * @param sign_data The data to pass to the sign function .
189
+ * @param sign_callback The callback method to sign the data during the challenge.
190
+ * @param payload Additional data to pass to the callback .
191
191
* @return 0 for success or an error code for failure
192
192
*/
193
193
GIT_EXTERN (int ) git_cred_ssh_custom_new (
194
194
git_cred * * out ,
195
195
const char * username ,
196
196
const char * publickey ,
197
197
size_t publickey_len ,
198
- git_cred_sign_callback sign_fn ,
199
- void * sign_data );
198
+ git_cred_sign_callback sign_callback ,
199
+ void * payload );
200
200
201
201
/**
202
202
* Create a "default" credential usable for Negotiate mechanisms like NTLM
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ int git_cred_ssh_custom_new(
204
204
const char * publickey ,
205
205
size_t publickey_len ,
206
206
git_cred_sign_callback sign_callback ,
207
- void * sign_data )
207
+ void * payload )
208
208
{
209
209
git_cred_ssh_custom * c ;
210
210
@@ -228,7 +228,7 @@ int git_cred_ssh_custom_new(
228
228
229
229
c -> publickey_len = publickey_len ;
230
230
c -> sign_callback = sign_callback ;
231
- c -> sign_data = sign_data ;
231
+ c -> payload = payload ;
232
232
233
233
* cred = & c -> parent ;
234
234
return 0 ;
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ static int _git_ssh_authenticate_session(
310
310
311
311
rc = libssh2_userauth_publickey (
312
312
session , c -> username , (const unsigned char * )c -> publickey ,
313
- c -> publickey_len , c -> sign_callback , & c -> sign_data );
313
+ c -> publickey_len , c -> sign_callback , & c -> payload );
314
314
break ;
315
315
}
316
316
case GIT_CREDTYPE_SSH_INTERACTIVE : {
You can’t perform that action at this time.
0 commit comments