libgit2

git_cred_ssh_interactive_new

Version:

Create a new ssh keyboard-interactive based credential object. The supplied credential parameter will be internally duplicated.

Signature

int git_cred_ssh_interactive_new(git_cred **out, const char *username, git_cred_ssh_interactive_callback prompt_callback, void *payload);

Parameters

In
out
const char *
In
username

Username to use to authenticate.

In
prompt_callback

The callback method used for prompts.

void *
In
payload

Additional data to pass to the callback.

Returns

int

0 for success or an error code for failure.

Versions