libgit2

git_credential_ssh_interactive_new

Version:

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

Signature

int git_credential_ssh_interactive_new(git_credential **out, const char *username, git_credential_ssh_interactive_cb prompt_callback, void *payload);

Parameters

In
out

The newly created credential object.

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