Add new error codes and their matching error descriptions
Signed-off-by: John Dennis <jdennis@redhat.com> License: MIT
This commit is contained in:
parent
a6014fc51b
commit
a3f01cd42c
|
@ -118,6 +118,18 @@ lasso_strerror(int error_code)
|
|||
return "Failed to verify signature.";
|
||||
case LASSO_DS_ERROR_TOO_MUCH_REFERENCES:
|
||||
return "SAML signature must contain only one reference";
|
||||
case LASSO_ECP_ERROR_ASSERTION_CONSUMER_URL_MISMATCH:
|
||||
return "The ecp:Request responseConsumerURL and ecp:Response AssertionConsumerURL do not match";
|
||||
case LASSO_ECP_ERROR_MISSING_AUTHN_REQUEST:
|
||||
return "Missing samlp:AuthnRequest in ECP request";
|
||||
case LASSO_ECP_ERROR_MISSING_RELAYSTATE:
|
||||
return "Missing ECP RelayState";
|
||||
case LASSO_ECP_ERROR_MISSING_REQUEST:
|
||||
return "Missing ECP Request";
|
||||
case LASSO_ECP_ERROR_MISSING_RESPONSE:
|
||||
return "Missing ECP Response";
|
||||
case LASSO_ECP_ERROR_MISSING_SAML_RESPONSE:
|
||||
return "Missing samlp:Response in IdP ECP response";
|
||||
case LASSO_ERROR_CAST_FAILED:
|
||||
return "Expected GObject class was not found, cast failed";
|
||||
case LASSO_ERROR_OUT_OF_MEMORY:
|
||||
|
@ -186,6 +198,12 @@ lasso_strerror(int error_code)
|
|||
return "LASSO_NAME_IDENTIFIER_MAPPING_ERROR_MISSING_TARGET_IDENTIFIER";
|
||||
case LASSO_NAME_IDENTIFIER_MAPPING_ERROR_MISSING_TARGET_NAMESPACE:
|
||||
return "Target name space not found";
|
||||
case LASSO_PAOS_ERROR_MISSING_REQUEST:
|
||||
return "Missing PAOS Request";
|
||||
case LASSO_PAOS_ERROR_MISSING_RESPONSE:
|
||||
return "Missing PAOS Response";
|
||||
case LASSO_PAOS_ERROR_MISSING_RESPONSE_CONSUMER_URL:
|
||||
return "Missing paos:Request responseConsumerURL";
|
||||
case LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ:
|
||||
return "An object type provided as parameter is invalid or object is NULL.";
|
||||
case LASSO_PARAM_ERROR_CHECK_FAILED:
|
||||
|
@ -224,6 +242,8 @@ lasso_strerror(int error_code)
|
|||
return "An assertion conditions could not be validated.";
|
||||
case LASSO_PROFILE_ERROR_INVALID_HTTP_METHOD:
|
||||
return "Invalid HTTP method";
|
||||
case LASSO_PROFILE_ERROR_INVALID_IDP_LIST:
|
||||
return "The IDP list is invalid";
|
||||
case LASSO_PROFILE_ERROR_INVALID_ISSUER:
|
||||
return "Assertion issuer is not the same as the requested issuer";
|
||||
case LASSO_PROFILE_ERROR_INVALID_MSG:
|
||||
|
@ -364,6 +384,8 @@ lasso_strerror(int error_code)
|
|||
return "The EncryptedData node is invalid, look at the logs.";
|
||||
case LASSO_XML_ERROR_ATTR_NOT_FOUND:
|
||||
return "Unable to get attribute of element.";
|
||||
case LASSO_XML_ERROR_ATTR_VALUE_INVALID:
|
||||
return "Attribute value is invalid.";
|
||||
case LASSO_XML_ERROR_ATTR_VALUE_NOT_FOUND:
|
||||
return "Unable to get attribute value of element.";
|
||||
case LASSO_XML_ERROR_INVALID_FILE:
|
||||
|
|
|
@ -113,6 +113,12 @@ LASSO_EXPORT const char* lasso_strerror(int error_code);
|
|||
* An XML tree does not respect at least an XML schema of its namespaces.
|
||||
*/
|
||||
#define LASSO_XML_ERROR_SCHEMA_INVALID_FRAGMENT 17
|
||||
/**
|
||||
* LASSO_XML_ERROR_ATTR_VALUE_INVALID:
|
||||
*
|
||||
* Attribute value is invalid.
|
||||
*/
|
||||
#define LASSO_XML_ERROR_ATTR_VALUE_INVALID -18
|
||||
|
||||
/* XMLDSig */
|
||||
/**
|
||||
|
@ -616,6 +622,12 @@ LASSO_EXPORT const char* lasso_strerror(int error_code);
|
|||
* corresponding provider.
|
||||
*/
|
||||
#define LASSO_PROFILE_ERROR_ENDPOINT_INDEX_NOT_FOUND 451
|
||||
/**
|
||||
* LASSO_PROFILE_ERROR_INVALID_IDP_LIST
|
||||
*
|
||||
* The IDP list is invalid
|
||||
*/
|
||||
#define LASSO_PROFILE_ERROR_INVALID_IDP_LIST 452
|
||||
|
||||
/* functions/methods parameters checking */
|
||||
/**
|
||||
|
@ -1089,3 +1101,59 @@ LASSO_EXPORT const char* lasso_strerror(int error_code);
|
|||
* The EncryptedData node is invalid, look at the logs.
|
||||
*/
|
||||
#define LASSO_XMLENC_ERROR_INVALID_ENCRYPTED_DATA -2001
|
||||
|
||||
/**
|
||||
* LASSO_PAOS_ERROR_MISSING_REQUEST
|
||||
*
|
||||
* Missing PAOS Request
|
||||
*/
|
||||
#define LASSO_PAOS_ERROR_MISSING_REQUEST -2101
|
||||
/**
|
||||
* LASSO_PAOS_ERROR_MISSING_RESPONSE
|
||||
*
|
||||
* Missing PAOS Response
|
||||
*/
|
||||
#define LASSO_PAOS_ERROR_MISSING_RESPONSE -2102
|
||||
/**
|
||||
* LASSO_PAOS_ERROR_MISSING_RESPONSE_CONSUMER_URL
|
||||
*
|
||||
* Missing paos:Request responseConsumerURL
|
||||
*/
|
||||
#define LASSO_PAOS_ERROR_MISSING_RESPONSE_CONSUMER_URL -2103
|
||||
|
||||
/**
|
||||
* LASSO_ECP_ERROR_MISSING_REQUEST
|
||||
*
|
||||
* Missing ECP Request
|
||||
*/
|
||||
#define LASSO_ECP_ERROR_MISSING_REQUEST -2201
|
||||
/**
|
||||
* LASSO_ECP_ERROR_MISSING_RESPONSE
|
||||
*
|
||||
* Missing ECP Response
|
||||
*/
|
||||
#define LASSO_ECP_ERROR_MISSING_RESPONSE -2202
|
||||
/**
|
||||
* LASSO_ECP_ERROR_MISSING_RELAYSTATE
|
||||
*
|
||||
* Missing ECP RelayState
|
||||
*/
|
||||
#define LASSO_ECP_ERROR_MISSING_RELAYSTATE -2203
|
||||
/**
|
||||
* LASSO_ECP_ERROR_MISSING_AUTHN_REQUEST
|
||||
*
|
||||
* Missing samlp:AuthnRequest in ECP request
|
||||
*/
|
||||
#define LASSO_ECP_ERROR_MISSING_AUTHN_REQUEST -2204
|
||||
/**
|
||||
* LASSO_ECP_ERROR_MISSING_SAML_RESPONSE
|
||||
*
|
||||
* Missing samlp:Response in IdP ECP response
|
||||
*/
|
||||
#define LASSO_ECP_ERROR_MISSING_SAML_RESPONSE -2205
|
||||
/**
|
||||
* LASSO_ECP_ERROR_ASSERTION_CONSUMER_URL_MISMATCH
|
||||
*
|
||||
* The ecp:Request responseConsumerURL and ecp:Response AssertionConsumerURL do not match
|
||||
*/
|
||||
#define LASSO_ECP_ERROR_ASSERTION_CONSUMER_URL_MISMATCH -2206
|
||||
|
|
Loading…
Reference in New Issue