Added no or missing credentail error.

This commit is contained in:
Armin Novak 2018-07-05 15:20:52 +02:00
parent fc84e6dd2c
commit 398da7340b
3 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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)
};

View File

@ -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;
}
}