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.h | |
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.h')
-rw-r--r-- | lasso/id-ff/profile.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/lasso/id-ff/profile.h b/lasso/id-ff/profile.h index 12020407..a42ad5b5 100644 --- a/lasso/id-ff/profile.h +++ b/lasso/id-ff/profile.h @@ -98,7 +98,7 @@ typedef enum { * @LASSO_PROFILE_SIGNATURE_HINT_FORCE: generate and validate all signatures. * @LASSO_PROFILE_SIGNATURE_HINT_FORBID: do not generate or validate any signature. * - * Advice a #LassoProfile object about the policy for generating and validating request and response + * Advice a #LassoProfile object about the policy for generating request and response * signatures. */ typedef enum { @@ -108,6 +108,21 @@ typedef enum { } LassoProfileSignatureHint; /** + * LassoProfileSignatureVerifyHint: + * @LASSO_PROFILE_SIGNATURE_VERIFY_HINT_MAYBE: let Lasso decide what to do. + * @LASSO_PROFILE_SIGNATURE_VERIFY_HINT_IGNORE: check signatures but do not stop protocol handling + * on failures. The result of signature checking is still available in + * #LassoProfile.signature_status + * + * Advice a #LassoProfile object about the policy checking request and response + * signatures. + */ +typedef enum { + LASSO_PROFILE_SIGNATURE_VERIFY_HINT_MAYBE = 0, + LASSO_PROFILE_SIGNATURE_VERIFY_HINT_IGNORE = 1 +} LassoProfileSignatureVerifyHint; + +/** * LassoProfile: * @server: #LassoServer object representing the provider intiating this profile, * @request: the currently initialized request, or the last request parsed, @@ -185,6 +200,9 @@ LASSO_EXPORT void lasso_profile_set_signature_hint(LassoProfile *profile, LASSO_EXPORT LassoProfileSignatureHint lasso_profile_get_signature_hint(LassoProfile *profile); LASSO_EXPORT gint lasso_profile_set_soap_fault_response(LassoProfile *profile, const char *faultcode, const char *faultstring, GList *details); +LASSO_EXPORT void lasso_profile_set_signature_verify_hint(LassoProfile *profile, + LassoProfileSignatureVerifyHint signature_verify_hint); +LASSO_EXPORT LassoProfileSignatureVerifyHint lasso_profile_get_signature_verify_hint(LassoProfile *profile); #ifdef __cplusplus } |