mirror of
https://github.com/QRouland/UTPass.git
synced 2026-01-10 03:26:57 +00:00
Some GIT clone improvements (error messgages ...)
This commit is contained in:
@@ -31,12 +31,20 @@ struct SSHKey {
|
||||
*/
|
||||
typedef std::variant<HTTP, HTTPUserPass, SSHKey> cred_type;
|
||||
|
||||
enum class ErrorCodeCB {
|
||||
None = 0,
|
||||
NoUsername,
|
||||
UrlTypeDoNotMatchCreds,
|
||||
InvalidCreds,
|
||||
};
|
||||
|
||||
|
||||
struct PayloadCB
|
||||
{
|
||||
bool called;
|
||||
cred_type creds;
|
||||
PayloadCB(bool ca, cred_type cr): called(ca), creds(cr) {}
|
||||
ErrorCodeCB err;
|
||||
PayloadCB(bool ca, cred_type cr): called(ca), creds(cr), err(ErrorCodeCB::None) {}
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user