diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:14:31 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-04 09:14:31 +0000 |
| commit | 272507091774e230ce244c17bcd90d0a0efeda0b (patch) | |
| tree | 5f6cdf722f74581186ca1ca9db0d64180bc406a9 | |
| parent | 4497b166bf4e36101d11705fd0b110e7485e9b92 (diff) | |
| download | lasso-272507091774e230ce244c17bcd90d0a0efeda0b.tar.gz lasso-272507091774e230ce244c17bcd90d0a0efeda0b.tar.xz lasso-272507091774e230ce244c17bcd90d0a0efeda0b.zip | |
SAML 2.0: in login.c, use lasso_server_saml2_assertion_setup_signature
| -rw-r--r-- | lasso/saml-2.0/login.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lasso/saml-2.0/login.c b/lasso/saml-2.0/login.c index c4fcd3bd..22503779 100644 --- a/lasso/saml-2.0/login.c +++ b/lasso/saml-2.0/login.c @@ -30,6 +30,7 @@ #include "loginprivate.h" #include "profileprivate.h" #include "federationprivate.h" +#include "./saml2_helper.h" #include "../id-ff/providerprivate.h" #include "../id-ff/serverprivate.h" @@ -758,14 +759,7 @@ lasso_saml20_login_build_assertion(LassoLogin *login, assertion->AuthnStatement = g_list_append(NULL, authentication_statement); /* Save signing material in assertion private datas to be able to sign later */ - if (profile->server->certificate) { - assertion->sign_type = LASSO_SIGNATURE_TYPE_WITHX509; - } else { - assertion->sign_type = LASSO_SIGNATURE_TYPE_SIMPLE; - } - assertion->sign_method = profile->server->signature_method; - assertion->private_key_file = g_strdup(profile->server->private_key); - assertion->certificate_file = g_strdup(profile->server->certificate); + lasso_server_saml2_assertion_setup_signature(profile->server, assertion); /* Save encryption material in assertion private datas to be able to encrypt later */ if (provider && provider->private_data->encryption_mode & LASSO_ENCRYPTION_MODE_ASSERTION |
