diff options
author | Vicent Martà <vicent@github.com> | 2012-12-10 11:40:49 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2012-12-10 11:40:49 -0800 |
commit | a72a8f34d3343c739579df912f2c46ebffc1143f (patch) | |
tree | 82d4af3f511054016162c789655f760c184fe517 /include/git2 | |
parent | 72629a10e3420b7e20b2e349446b4babbed5eb2c (diff) | |
parent | 59bccf33c4de1124f2effd5d4b1a9ef44babefd0 (diff) | |
download | libgit2-a72a8f34d3343c739579df912f2c46ebffc1143f.tar.gz |
Merge pull request #1132 from ben/cred-acquire-payload
Add a payload param to git_cred_acquire_cb
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); |