Added no or missing credentail error.
This commit is contained in:
parent
fc84e6dd2c
commit
398da7340b
@ -253,6 +253,7 @@ FREERDP_API const char* freerdp_get_error_base_name(UINT32 code);
|
||||
#define ERRCONNECT_ACCOUNT_LOCKED_OUT 0x00000018
|
||||
#define ERRCONNECT_ACCOUNT_EXPIRED 0x00000019
|
||||
#define ERRCONNECT_LOGON_TYPE_NOT_GRANTED 0x0000001A
|
||||
#define ERRCONNECT_NO_OR_MISSING_CREDENTIALS 0x0000001B
|
||||
|
||||
|
||||
#define ERRCONNECT_SUCCESS ERRINFO_SUCCESS
|
||||
@ -341,6 +342,9 @@ FREERDP_API const char* freerdp_get_error_connect_name(UINT32 code);
|
||||
#define FREERDP_ERROR_CONNECT_LOGON_TYPE_NOT_GRANTED \
|
||||
MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_LOGON_TYPE_NOT_GRANTED)
|
||||
|
||||
#define FREERDP_ERROR_CONNECT_NO_OR_MISSING_CREDENTIALS \
|
||||
MAKE_FREERDP_ERROR(CONNECT, ERRCONNECT_NO_OR_MISSING_CREDENTIALS)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -112,6 +112,9 @@
|
||||
#define ERRCONNECT_LOGON_TYPE_NOT_GRANTED_STRING \
|
||||
"Logon type not granted."
|
||||
|
||||
#define ERRCONNECT_NO_OR_MISSING_CREDENTIALS_STRING \
|
||||
"Credentials invalid or missing."
|
||||
|
||||
/* Special codes */
|
||||
#define ERRCONNECT_SUCCESS_STRING "Success."
|
||||
#define ERRCONNECT_NONE_STRING ""
|
||||
@ -146,6 +149,7 @@ static const ERRINFO ERRCONNECT_CODES[] =
|
||||
ERRCONNECT_DEFINE(ACCOUNT_LOCKED_OUT),
|
||||
ERRCONNECT_DEFINE(ACCOUNT_EXPIRED),
|
||||
ERRCONNECT_DEFINE(LOGON_TYPE_NOT_GRANTED),
|
||||
ERRCONNECT_DEFINE(NO_OR_MISSING_CREDENTIALS),
|
||||
|
||||
ERRCONNECT_DEFINE(NONE)
|
||||
};
|
||||
|
@ -240,7 +240,7 @@ static int nla_client_init(rdpNla* nla)
|
||||
|
||||
if (!proceed)
|
||||
{
|
||||
freerdp_set_last_error(instance->context, FREERDP_ERROR_CONNECT_CANCELLED);
|
||||
freerdp_set_last_error(instance->context, FREERDP_ERROR_CONNECT_NO_OR_MISSING_CREDENTIALS);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user