diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-06-12 00:43:14 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-06-12 00:43:14 +0000 |
| commit | c7539efbe07dd0043ebcd27587ba83511593fce9 (patch) | |
| tree | 59d9c682404922afb7c2dc459eb90d9d2c7efbe4 | |
| parent | 601aadbf8f429d8f1429a77e34e6c4f2cc67db93 (diff) | |
| download | lasso-c7539efbe07dd0043ebcd27587ba83511593fce9.tar.gz lasso-c7539efbe07dd0043ebcd27587ba83511593fce9.tar.xz lasso-c7539efbe07dd0043ebcd27587ba83511593fce9.zip | |
SAMLv2: when initializing signture on assertion, setup an ID if there is none
* without the ID lasso refuse to sign (it's mandatory)
| -rw-r--r-- | lasso/saml-2.0/saml2_helper.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lasso/saml-2.0/saml2_helper.c b/lasso/saml-2.0/saml2_helper.c index c691b7e8..ab946a5a 100644 --- a/lasso/saml-2.0/saml2_helper.c +++ b/lasso/saml-2.0/saml2_helper.c @@ -671,6 +671,9 @@ lasso_server_saml2_assertion_setup_signature(LassoServer *server, server->private_key); lasso_assign_string(saml2_assertion->certificate_file, server->certificate); + if (! saml2_assertion->ID) { + lasso_assign_new_string(saml2_assertion->ID, lasso_build_unique_id(32)); + } return 0; } |
