diff options
| author | Philip Kelley <phkelley@hotmail.com> | 2012-11-06 08:52:03 -0500 |
|---|---|---|
| committer | Philip Kelley <phkelley@hotmail.com> | 2012-11-06 08:52:03 -0500 |
| commit | 091361f569dd86e8550c04afb193bfb516a21a74 (patch) | |
| tree | a6afafde40743ddde98fcb8e4d36031b6d7f47a0 /include/git2/remote.h | |
| parent | a5e85d86b7e13352c553b0a43bc36fee5880b5c7 (diff) | |
| download | libgit2-091361f569dd86e8550c04afb193bfb516a21a74.tar.gz | |
Basic authentication for http and winhttp
Diffstat (limited to 'include/git2/remote.h')
| -rw-r--r-- | include/git2/remote.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/git2/remote.h b/include/git2/remote.h index 1827e12b0..33b7dfdec 100644 --- a/include/git2/remote.h +++ b/include/git2/remote.h @@ -287,6 +287,19 @@ GIT_EXTERN(int) git_remote_add(git_remote **out, git_repository *repo, const cha GIT_EXTERN(void) git_remote_check_cert(git_remote *remote, int check); /** + * Set a credentials acquisition callback for this remote. If the remote is + * not available for anonymous access, then you must set this callback in order + * to provide credentials to the transport at the time of authentication + * failure so that retry can be performed. + * + * @param remote the remote to configure + * @param The credentials acquisition callback to use (defaults to NULL) + */ +GIT_EXTERN(void) git_remote_set_cred_acquire_cb( + git_remote *remote, + git_cred_acquire_cb cred_acquire_cb); + +/** * Sets a custom transport for the remote. The caller can use this function * to bypass the automatic discovery of a transport by URL scheme (i.e. * http://, https://, git://) and supply their own transport to be used @@ -297,7 +310,9 @@ GIT_EXTERN(void) git_remote_check_cert(git_remote *remote, int check); * @param remote the remote to configure * @param transport the transport object for the remote to use */ -GIT_EXTERN(int) git_remote_set_transport(git_remote *remote, git_transport *transport); +GIT_EXTERN(int) git_remote_set_transport( + git_remote *remote, + git_transport *transport); /** * Argument to the completion callback which tells it which operation |
