summaryrefslogtreecommitdiffstats
path: root/lasso/errors.c
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-03-09 14:05:31 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-03-09 14:05:31 +0000
commit95d27816ee81f3c6b2cdea2bb2f0584a2df0b1a2 (patch)
tree538662515d216902765734bc4857914953236c03 /lasso/errors.c
parentcf50ac6da229df840409217ece42119a0292d1ba (diff)
downloadlasso-95d27816ee81f3c6b2cdea2bb2f0584a2df0b1a2.tar.gz
lasso-95d27816ee81f3c6b2cdea2bb2f0584a2df0b1a2.tar.xz
lasso-95d27816ee81f3c6b2cdea2bb2f0584a2df0b1a2.zip
Core: add a method to decrypt nameid, handling error cases
* lasso/id-dff/serverprivate.h: * lasso/id-ff/server.c: lasso_server_decrypt_nameid handle error case of NameID decryption, and update passed field pointers. * lasso/errors.h: add new error codes: LASSO_DS_ERROR_DECRYPTION_FAILED -118 - Decryption of an encrypted node failed LASSO_PROFILE_ERROR_MISSING_SERVER -438 - No server object set in the profile
Diffstat (limited to 'lasso/errors.c')
-rw-r--r--lasso/errors.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lasso/errors.c b/lasso/errors.c
index e90b8cf5..852cd93c 100644
--- a/lasso/errors.c
+++ b/lasso/errors.c
@@ -129,6 +129,8 @@ lasso_strerror(int error_code)
return "LASSO_XML_ERROR_MISSING_NAMESPACE";
case LASSO_DS_ERROR_INVALID_SIGNATURE:
return "Invalid signature.";
+ case LASSO_DS_ERROR_DECRYPTION_FAILED:
+ return "Decryption of an encrypted node failed";
case LASSO_LOGIN_ERROR_ASSERTION_DOES_NOT_MATCH_REQUEST_ID:
return "If inResponseTo attribute is present, a matching request must be present too in the LassoLogin object";
case LASSO_SERVER_ERROR_SET_ENCRYPTION_PRIVATE_KEY_FAILED:
@@ -205,6 +207,8 @@ lasso_strerror(int error_code)
return "Invalid XML file";
case LASSO_WSF_PROFILE_ERROR_MISSING_ENDPOINT:
return "Cannot find an WSP endpoint for the ID-WSF service";
+ case LASSO_PROFILE_ERROR_MISSING_SERVER:
+ return "No server object set in the profile";
case LASSO_XML_ERROR_NODE_NOT_FOUND:
return "Unable to get child of element.";
case LASSO_ERROR_UNIMPLEMENTED: