diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-03-27 16:51:34 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-03-27 16:51:34 +0000 |
| commit | d5994b2bae7a8e1ea42a758546f505f58aa5e1c3 (patch) | |
| tree | 4baf7a3ac02376146d7a8944088523a09588e11f /lasso/id-ff/profile.c | |
| parent | 7930eba5a3d38be225c510c63a39ac7fec9fc43c (diff) | |
| download | lasso-d5994b2bae7a8e1ea42a758546f505f58aa5e1c3.tar.gz lasso-d5994b2bae7a8e1ea42a758546f505f58aa5e1c3.tar.xz lasso-d5994b2bae7a8e1ea42a758546f505f58aa5e1c3.zip | |
Add signature_verify_hint accessor methods to LassoProfile
* lasso/id-ff/profile.{c,h}:
add a LassoProfileSignatureVerifyHint enumeration and two accessor
methods:
- lasso_profile_get_signature_verify_hint
- lasso_profile_set_signature_verify_hint
* lasso/id-ff/profileprivate.h:
add private field signature_verify_hint.
Diffstat (limited to 'lasso/id-ff/profile.c')
| -rw-r--r-- | lasso/id-ff/profile.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/lasso/id-ff/profile.c b/lasso/id-ff/profile.c index 631278f8..e30c1691 100644 --- a/lasso/id-ff/profile.c +++ b/lasso/id-ff/profile.c @@ -626,6 +626,41 @@ lasso_profile_get_signature_hint(LassoProfile *profile) } /** + * lasso_profile_set_signature_verify_hint: + * @profile: a #LassoProfile object + * @signature_verify_hint: whether next received message signatures should be checked or not (or let + * Lasso choose from implicit information). + * + * By default each profile will choose to sign or not its messages, this method allow to force or + * forbid the signature of messages, on a per transaction basis. + */ +void +lasso_profile_set_signature_verify_hint(LassoProfile *profile, LassoProfileSignatureVerifyHint signature_verify_hint) +{ + if (! LASSO_IS_PROFILE(profile) && ! profile->private_data) + return; + profile->private_data->signature_verify_hint = signature_verify_hint; +} + +/** + * lasso_profile_get_signature_verify_hint: + * @profile: a #LassoProfile object + * + * Return the value of the signature verify hint attribute (see + * lasso_profile_set_signature_verify_hint()). + * + * Return value: a value in the enum type #LassoProfileSignatureVerifyHint. + */ +LassoProfileSignatureVerifyHint +lasso_profile_get_signature_verify_hint(LassoProfile *profile) +{ + if (! LASSO_IS_PROFILE(profile) && ! profile->private_data) + return LASSO_PROFILE_SIGNATURE_HINT_MAYBE; + return profile->private_data->signature_verify_hint; +} + + +/** * lasso_profile_set_soap_fault_response: * @profile: a #LassoProfile object * @faultcode: the code for the SOAP fault |
