diff options
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/remote.h | 3 | ||||
| -rw-r--r-- | include/git2/transport.h | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index af73ca8b3..82aff385d 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -313,7 +313,8 @@ GIT_EXTERN(void) git_remote_check_cert(git_remote *remote, int check); */ GIT_EXTERN(void) git_remote_set_cred_acquire_cb( git_remote *remote, - git_cred_acquire_cb cred_acquire_cb); + git_cred_acquire_cb cred_acquire_cb, + void *payload); /** * Sets a custom transport for the remote. The caller can use this function diff --git a/include/git2/transport.h b/include/git2/transport.h index 00beb4472..c2f205295 100644 --- a/include/git2/transport.h +++ b/include/git2/transport.h @@ -65,7 +65,8 @@ GIT_EXTERN(int) git_cred_userpass_plaintext_new( typedef int (*git_cred_acquire_cb)( git_cred **cred, const char *url, - unsigned int allowed_types); + unsigned int allowed_types, + void *payload); /* *** End interface for credentials acquisition *** @@ -94,6 +95,7 @@ typedef struct git_transport { int (*connect)(struct git_transport *transport, const char *url, git_cred_acquire_cb cred_acquire_cb, + void *cred_acquire_payload, int direction, int flags); |
