Signature of a function which acquires a credential object.
The resource for which we are demanding a credential.
The username that was embedded in a "user@host" remote url, or NULL if not included.
A bitmask stating which cred types are OK to return.
The payload provided when specifying this callback.
0 for success, < 0 to indicate an error, > 0 to indicate no credential was acquired