git_credential_userpass

Stock callback usable as a git_credential_acquire_cb. This calls git_cred_userpass_plaintext_new unless the protocol has not specified git_credential_t.GIT_CREDENTIAL_USERPASS_PLAINTEXT as an allowed type.

extern (C) nothrow @nogc
int
git_credential_userpass

Parameters

out_ libgit2_d.credential.git_credential**

The newly created credential object.

url const(char)*

The resource for which we are demanding a credential.

user_from_url const(char)*

The username that was embedded in a "user\@host" remote url, or NULL if not included.

allowed_types uint

A bitmask stating which credential types are OK to return.

payload void*

The payload provided when specifying this callback. (This is interpreted as a git_credential_userpass_payload*.)

Meta