summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-27 08:19:11 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-27 08:19:11 +0000
commit251dfa0d0bda78473e19b3f98a4d0b6fbe8e20a6 (patch)
treed5e0232a2665865e49011241650aefd55256a3d4
parentf12c2e73325dd6e8dc3e9660f9e91bccf72c9aa8 (diff)
Complete documentation of lasso_login_build_request_msg
* lasso/id-ff/login.c: add all possible return codes with meaning.
-rw-r--r--lasso/id-ff/login.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/lasso/id-ff/login.c b/lasso/id-ff/login.c
index 86c12c62..9011eb31 100644
--- a/lasso/id-ff/login.c
+++ b/lasso/id-ff/login.c
@@ -1155,12 +1155,20 @@ lasso_login_build_authn_response_msg(LassoLogin *login)
* lasso_login_build_request_msg:
* @login: a #LassoLogin
*
- * Converts profile artifact request into a Liberty SOAP message.
+ * Produce a SOAP Artifact Resolve message. It must follows a call to
+ * lasso_login_init_request() on the artifact message.
+ * Converts artifact request into a Liberty SOAP message.
*
* The URL is set into the @msg_url member and the SOAP message is set into the
- * @msg_body member.
+ * @msg_body member. You should POST the @msg_body to the @msg_url afterward.
+ *
+ * Return value: 0 on success; or
+ * LASSO_PARAM_ERROR_BAD_TYPE_OR_NULL_OBJ if login is not a #LassoLogin object,
+ * LASSO_PROFILE_ERROR_MISSING_REMOTE_PROVIDERID if not remote provider ID was setup -- it usually
+ * means that lasso_login_init_request was not called before,
+ * LASSO_SERVER_ERROR_PROVIDER_NOT_FOUND if the remote provider ID is not registered in the server
+ * object.
*
- * Return value: 0 on success; or a negative value otherwise.
**/
gint
lasso_login_build_request_msg(LassoLogin *login)