libgit2

git_credential_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_credential_userpass_plaintext_new(git_credential **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