libgit2

git_cred_userpass_plaintext_new

Version:

Create a new plain-text username and password credential object. The supplied credential parameter will be internally duplicated.

Signature

int git_cred_userpass_plaintext_new(git_cred **out, const char *username, const char *password);

Parameters

In
out

The newly created credential object.

const char *
In
username

The username of the credential.

const char *
In
password

The password of the credential.

Returns

int

0 for success or an error code for failure

Versions