diff options
author | Vicent Martà <vicent@github.com> | 2013-11-20 07:06:35 -0800 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-11-20 07:06:35 -0800 |
commit | a2e873d1a15df03d7ecfac2a1bec56cf66b8cc40 (patch) | |
tree | c08a1c8fbaab807ae3af00a186ee98d94a989c24 /include | |
parent | 43cb8b32428b1b29994874349ec22eb5372e152c (diff) | |
parent | 138e014c389a750715cf4f60cceef96692b4ea51 (diff) | |
download | libgit2-a2e873d1a15df03d7ecfac2a1bec56cf66b8cc40.tar.gz |
Merge pull request #1972 from ghedo/ssh_agent
ssh: add support for ssh-agent authentication
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/transport.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/git2/transport.h b/include/git2/transport.h index caabd0465..039321088 100644 --- a/include/git2/transport.h +++ b/include/git2/transport.h @@ -131,6 +131,18 @@ GIT_EXTERN(int) git_cred_ssh_key_new( const char *passphrase); /** + * Create a new ssh key credential object used for querying an ssh-agent. + * The supplied credential parameter will be internally duplicated. + * + * @param out The newly created credential object. + * @param username username to use to authenticate + * @return 0 for success or an error code for failure + */ +GIT_EXTERN(int) git_cred_ssh_key_from_agent( + git_cred **out, + const char *username); + +/** * Create an ssh key credential with a custom signing function. * * This lets you use your own function to sign the challenge. |