Add a lasso_profile_get_signature_status method

This commit is contained in:
Benjamin Dauvergne 2010-05-01 05:40:31 +00:00
parent a041a2ef81
commit 5ba5b4634e
3 changed files with 18 additions and 0 deletions

View File

@ -93,6 +93,7 @@ lasso_profile_get_signature_hint
lasso_profile_set_signature_verify_hint
lasso_profile_get_signature_verify_hint
lasso_profile_sso_role_with
lasso_profile_get_signature_status
<SUBSECTION Standard>
LASSO_PROFILE
LASSO_IS_PROFILE

View File

@ -766,6 +766,22 @@ LassoProviderRole lasso_profile_sso_role_with(LassoProfile *profile, const char
return LASSO_PROVIDER_ROLE_NONE;
}
/**
* lasso_profile_get_signature_status:
* @profile: a #LassoProfile object
*
* Returns the signature status from the last parsed message.
*
* Return value: 0 if no error from signature checking occurred, an error code otherwise.
*/
gint
lasso_profile_get_signature_status(LassoProfile *profile)
{
lasso_bad_param(PROFILE, profile);
return profile->signature_status;
}
/*****************************************************************************/
/* overridden parent class methods */
/*****************************************************************************/

View File

@ -208,6 +208,7 @@ LASSO_EXPORT void lasso_profile_set_signature_verify_hint(LassoProfile *profile,
LASSO_EXPORT LassoProfileSignatureVerifyHint lasso_profile_get_signature_verify_hint(LassoProfile *profile);
LASSO_EXPORT LassoProviderRole lasso_profile_sso_role_with(LassoProfile *profile,
const char *remote_provider_id);
LASSO_EXPORT gint lasso_profile_get_signature_status(LassoProfile *profile);
#ifdef __cplusplus
}