diff options
author | Damien Laniel <dlaniel@entrouvert.com> | 2006-12-20 09:03:41 +0000 |
---|---|---|
committer | Damien Laniel <dlaniel@entrouvert.com> | 2006-12-20 09:03:41 +0000 |
commit | 13f707bf30acd26ae9c6fac5321d0accd47a5b90 (patch) | |
tree | d90d87b90f4f6d4301c43380869ae94515af2485 /lasso/xml/saml-2.0 | |
parent | c6f2dfb32f124fbd348e64c444ae2d42bc183309 (diff) | |
download | lasso-13f707bf30acd26ae9c6fac5321d0accd47a5b90.tar.gz lasso-13f707bf30acd26ae9c6fac5321d0accd47a5b90.tar.xz lasso-13f707bf30acd26ae9c6fac5321d0accd47a5b90.zip |
Allow the choice of the encryption algorithm to use
Diffstat (limited to 'lasso/xml/saml-2.0')
-rw-r--r-- | lasso/xml/saml-2.0/saml2_assertion.c | 3 | ||||
-rw-r--r-- | lasso/xml/saml-2.0/saml2_assertion.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lasso/xml/saml-2.0/saml2_assertion.c b/lasso/xml/saml-2.0/saml2_assertion.c index 282c42ee..98d431c8 100644 --- a/lasso/xml/saml-2.0/saml2_assertion.c +++ b/lasso/xml/saml-2.0/saml2_assertion.c @@ -96,6 +96,8 @@ static struct XmlSnippet schema_snippets[] = { G_STRUCT_OFFSET(LassoSaml2Assertion, encryption_activated) }, { "EncryptionPublicKeyStr", SNIPPET_CONTENT | SNIPPET_LASSO_DUMP, G_STRUCT_OFFSET(LassoSaml2Assertion, encryption_public_key_str) }, + { "EncryptionSymKeyType", SNIPPET_ATTRIBUTE | SNIPPET_INTEGER | SNIPPET_LASSO_DUMP, + G_STRUCT_OFFSET(LassoSaml2Assertion, encryption_sym_key_type) }, {NULL, 0, 0} }; @@ -146,6 +148,7 @@ instance_init(LassoSaml2Assertion *node) node->certificate_file = NULL; node->encryption_activated = FALSE; node->encryption_public_key_str = NULL; + node->encryption_sym_key_type = LASSO_ENCRYPTION_SYM_KEY_TYPE_DEFAULT; } static void diff --git a/lasso/xml/saml-2.0/saml2_assertion.h b/lasso/xml/saml-2.0/saml2_assertion.h index 1e2337d1..1c8065c0 100644 --- a/lasso/xml/saml-2.0/saml2_assertion.h +++ b/lasso/xml/saml-2.0/saml2_assertion.h @@ -53,6 +53,8 @@ typedef struct _LassoSaml2AssertionClass LassoSaml2AssertionClass; #include "saml2_subject.h" #include "saml2_name_id.h" +#include <lasso/xml/xml_enc.h> + struct _LassoSaml2Assertion { LassoNode parent; @@ -78,6 +80,7 @@ struct _LassoSaml2Assertion { char *certificate_file; gboolean encryption_activated; char *encryption_public_key_str; + LassoEncryptionSymKeyType encryption_sym_key_type; }; |