From 86f0f6b6f23b88da75a67667a7c150d5dace5c06 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 1 Oct 2010 17:44:40 +0200 Subject: [PATCH] [SAMLv2] restore setting of SubjectConfirmationData->NotOnOrAfter This was wrongly removed by me in commit 9d22f29e55524034dfda34c15b76f1b0b78c4413. This is the responsability of the caller to adjust value on the Conditions and SubjectConfirmationData independently after. --- lasso/saml-2.0/login.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lasso/saml-2.0/login.c b/lasso/saml-2.0/login.c index c080faca..aa892315 100644 --- a/lasso/saml-2.0/login.c +++ b/lasso/saml-2.0/login.c @@ -762,6 +762,12 @@ lasso_saml20_login_build_assertion(LassoLogin *login, assertion->Subject->SubjectConfirmation->SubjectConfirmationData = LASSO_SAML2_SUBJECT_CONFIRMATION_DATA( lasso_saml2_subject_confirmation_data_new()); + lasso_assign_string( + assertion->Subject->SubjectConfirmation->SubjectConfirmationData->NotBefore, + notBefore); + lasso_assign_string( + assertion->Subject->SubjectConfirmation->SubjectConfirmationData->NotOnOrAfter, + notOnOrAfter); /* If request is present, refer to it in the response */ if (authn_request) {