Add a lasso_profile_get_signature_status method
This commit is contained in:
parent
a041a2ef81
commit
5ba5b4634e
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
/*****************************************************************************/
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue