FreeRDP
errconnect.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <freerdp/log.h>
#include "errinfo.h"

Macros

#define TAG   FREERDP_TAG("core")
 
#define ERRCONNECT_DEFINE(_code, category)
 
#define ERRCONNECT_PRE_CONNECT_FAILED_STRING    "A configuration error prevented a connection to be established."
 
#define ERRCONNECT_CONNECT_UNDEFINED_STRING   "A undefined connection error occurred."
 
#define ERRCONNECT_POST_CONNECT_FAILED_STRING    "The connection attempt was aborted due to post connect configuration errors."
 
#define ERRCONNECT_DNS_ERROR_STRING   "The DNS entry could not be resolved."
 
#define ERRCONNECT_DNS_NAME_NOT_FOUND_STRING   "The DNS host name was not found."
 
#define ERRCONNECT_CONNECT_FAILED_STRING   "The connection failed."
 
#define ERRCONNECT_MCS_CONNECT_INITIAL_ERROR_STRING   "The connection failed at initial MCS connect"
 
#define ERRCONNECT_TLS_CONNECT_FAILED_STRING   "The connection failed at TLS connect."
 
#define ERRCONNECT_AUTHENTICATION_FAILED_STRING   "An authentication failure aborted the connection."
 
#define ERRCONNECT_INSUFFICIENT_PRIVILEGES_STRING    "Insufficient privileges to establish a connection."
 
#define ERRCONNECT_CONNECT_CANCELLED_STRING   "The connection was cancelled."
 
#define ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED_STRING    "The connection failed at negotiating security settings."
 
#define ERRCONNECT_CONNECT_TRANSPORT_FAILED_STRING   "The connection transport layer failed."
 
#define ERRCONNECT_PASSWORD_EXPIRED_STRING   "The password has expired and must be changed."
 
#define ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED_STRING    "The password has certainly expired and must be changed."
 
#define ERRCONNECT_CLIENT_REVOKED_STRING   "The client has been revoked."
 
#define ERRCONNECT_KDC_UNREACHABLE_STRING   "The KDC is unreachable."
 
#define ERRCONNECT_ACCOUNT_DISABLED_STRING   "The account is disabled."
 
#define ERRCONNECT_PASSWORD_MUST_CHANGE_STRING   "The password must be changed."
 
#define ERRCONNECT_LOGON_FAILURE_STRING   "Logon failed."
 
#define ERRCONNECT_WRONG_PASSWORD_STRING   "Wrong password supplied."
 
#define ERRCONNECT_ACCESS_DENIED_STRING   "Access denied."
 
#define ERRCONNECT_ACCOUNT_RESTRICTION_STRING   "Account restriction."
 
#define ERRCONNECT_ACCOUNT_LOCKED_OUT_STRING   "Account locked out."
 
#define ERRCONNECT_ACCOUNT_EXPIRED_STRING   "Account expired."
 
#define ERRCONNECT_LOGON_TYPE_NOT_GRANTED_STRING   "Logon type not granted."
 
#define ERRCONNECT_NO_OR_MISSING_CREDENTIALS_STRING   "Credentials invalid or missing."
 
#define ERRCONNECT_ACTIVATION_TIMEOUT_STRING   "Timeout waiting for activation."
 
#define ERRCONNECT_SUCCESS_STRING   "Success."
 
#define ERRCONNECT_NONE_STRING   ""
 

Functions

const char * freerdp_get_error_connect_string (UINT32 code)
 
const char * freerdp_get_error_connect_category (UINT32 code)
 
const char * freerdp_get_error_connect_name (UINT32 code)
 

Variables

static const ERRINFO ERRCONNECT_CODES []
 

Macro Definition Documentation

◆ ERRCONNECT_ACCESS_DENIED_STRING

#define ERRCONNECT_ACCESS_DENIED_STRING   "Access denied."

◆ ERRCONNECT_ACCOUNT_DISABLED_STRING

#define ERRCONNECT_ACCOUNT_DISABLED_STRING   "The account is disabled."

◆ ERRCONNECT_ACCOUNT_EXPIRED_STRING

#define ERRCONNECT_ACCOUNT_EXPIRED_STRING   "Account expired."

◆ ERRCONNECT_ACCOUNT_LOCKED_OUT_STRING

#define ERRCONNECT_ACCOUNT_LOCKED_OUT_STRING   "Account locked out."

◆ ERRCONNECT_ACCOUNT_RESTRICTION_STRING

#define ERRCONNECT_ACCOUNT_RESTRICTION_STRING   "Account restriction."

◆ ERRCONNECT_ACTIVATION_TIMEOUT_STRING

#define ERRCONNECT_ACTIVATION_TIMEOUT_STRING   "Timeout waiting for activation."

◆ ERRCONNECT_AUTHENTICATION_FAILED_STRING

#define ERRCONNECT_AUTHENTICATION_FAILED_STRING   "An authentication failure aborted the connection."

◆ ERRCONNECT_CLIENT_REVOKED_STRING

#define ERRCONNECT_CLIENT_REVOKED_STRING   "The client has been revoked."

◆ ERRCONNECT_CONNECT_CANCELLED_STRING

#define ERRCONNECT_CONNECT_CANCELLED_STRING   "The connection was cancelled."

◆ ERRCONNECT_CONNECT_FAILED_STRING

#define ERRCONNECT_CONNECT_FAILED_STRING   "The connection failed."

◆ ERRCONNECT_CONNECT_TRANSPORT_FAILED_STRING

#define ERRCONNECT_CONNECT_TRANSPORT_FAILED_STRING   "The connection transport layer failed."

◆ ERRCONNECT_CONNECT_UNDEFINED_STRING

#define ERRCONNECT_CONNECT_UNDEFINED_STRING   "A undefined connection error occurred."

◆ ERRCONNECT_DEFINE

#define ERRCONNECT_DEFINE (   _code,
  category 
)
Value:
{ \
ERRCONNECT_##_code, "ERRCONNECT_" #_code, ERRCONNECT_##_code##_STRING, category \
}

◆ ERRCONNECT_DNS_ERROR_STRING

#define ERRCONNECT_DNS_ERROR_STRING   "The DNS entry could not be resolved."

◆ ERRCONNECT_DNS_NAME_NOT_FOUND_STRING

#define ERRCONNECT_DNS_NAME_NOT_FOUND_STRING   "The DNS host name was not found."

◆ ERRCONNECT_INSUFFICIENT_PRIVILEGES_STRING

#define ERRCONNECT_INSUFFICIENT_PRIVILEGES_STRING    "Insufficient privileges to establish a connection."

◆ ERRCONNECT_KDC_UNREACHABLE_STRING

#define ERRCONNECT_KDC_UNREACHABLE_STRING   "The KDC is unreachable."

◆ ERRCONNECT_LOGON_FAILURE_STRING

#define ERRCONNECT_LOGON_FAILURE_STRING   "Logon failed."

◆ ERRCONNECT_LOGON_TYPE_NOT_GRANTED_STRING

#define ERRCONNECT_LOGON_TYPE_NOT_GRANTED_STRING   "Logon type not granted."

◆ ERRCONNECT_MCS_CONNECT_INITIAL_ERROR_STRING

#define ERRCONNECT_MCS_CONNECT_INITIAL_ERROR_STRING   "The connection failed at initial MCS connect"

◆ ERRCONNECT_NO_OR_MISSING_CREDENTIALS_STRING

#define ERRCONNECT_NO_OR_MISSING_CREDENTIALS_STRING   "Credentials invalid or missing."

◆ ERRCONNECT_NONE_STRING

#define ERRCONNECT_NONE_STRING   ""

◆ ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED_STRING

#define ERRCONNECT_PASSWORD_CERTAINLY_EXPIRED_STRING    "The password has certainly expired and must be changed."

◆ ERRCONNECT_PASSWORD_EXPIRED_STRING

#define ERRCONNECT_PASSWORD_EXPIRED_STRING   "The password has expired and must be changed."

◆ ERRCONNECT_PASSWORD_MUST_CHANGE_STRING

#define ERRCONNECT_PASSWORD_MUST_CHANGE_STRING   "The password must be changed."

◆ ERRCONNECT_POST_CONNECT_FAILED_STRING

#define ERRCONNECT_POST_CONNECT_FAILED_STRING    "The connection attempt was aborted due to post connect configuration errors."

◆ ERRCONNECT_PRE_CONNECT_FAILED_STRING

#define ERRCONNECT_PRE_CONNECT_FAILED_STRING    "A configuration error prevented a connection to be established."

◆ ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED_STRING

#define ERRCONNECT_SECURITY_NEGO_CONNECT_FAILED_STRING    "The connection failed at negotiating security settings."

◆ ERRCONNECT_SUCCESS_STRING

#define ERRCONNECT_SUCCESS_STRING   "Success."

◆ ERRCONNECT_TLS_CONNECT_FAILED_STRING

#define ERRCONNECT_TLS_CONNECT_FAILED_STRING   "The connection failed at TLS connect."

◆ ERRCONNECT_WRONG_PASSWORD_STRING

#define ERRCONNECT_WRONG_PASSWORD_STRING   "Wrong password supplied."

◆ TAG

#define TAG   FREERDP_TAG("core")

FreeRDP: A Remote Desktop Protocol Implementation Error Connect

Copyright 2015 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2015 Thincast Technologies GmbH

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Function Documentation

◆ freerdp_get_error_connect_category()

const char* freerdp_get_error_connect_category ( UINT32  code)
Here is the caller graph for this function:

◆ freerdp_get_error_connect_name()

const char* freerdp_get_error_connect_name ( UINT32  code)
Here is the caller graph for this function:

◆ freerdp_get_error_connect_string()

const char* freerdp_get_error_connect_string ( UINT32  code)
Here is the caller graph for this function:

Variable Documentation

◆ ERRCONNECT_CODES

const ERRINFO ERRCONNECT_CODES[]
static