Commit 138e014c by Alessandro Ghedini

transport: document ssh-agent authentication

parent ee7040fd
...@@ -131,6 +131,18 @@ GIT_EXTERN(int) git_cred_ssh_key_new( ...@@ -131,6 +131,18 @@ GIT_EXTERN(int) git_cred_ssh_key_new(
const char *passphrase); 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. * Create an ssh key credential with a custom signing function.
* *
* This lets you use your own function to sign the challenge. * This lets you use your own function to sign the challenge.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment