From 7b31214f32c9e83d9976210f8bebaf24a328c21d Mon Sep 17 00:00:00 2001 From: cantor Date: Mon, 3 Mar 2008 18:24:30 +0000 Subject: [PATCH] Make NameID explicitly optional. Bug fix initializing NameID in chaining resolver. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2754 cb58f699-b61c-0410-a6fe-9272a202ed29 --- shibsp/attribute/resolver/AttributeResolver.h | 2 +- shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp | 4 ++-- shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/shibsp/attribute/resolver/AttributeResolver.h b/shibsp/attribute/resolver/AttributeResolver.h index 41646ce..73adab1 100644 --- a/shibsp/attribute/resolver/AttributeResolver.h +++ b/shibsp/attribute/resolver/AttributeResolver.h @@ -72,7 +72,7 @@ namespace shibsp { const Application& application, const opensaml::saml2md::EntityDescriptor* issuer, const XMLCh* protocol, - const opensaml::saml2::NameID* nameid, + const opensaml::saml2::NameID* nameid=NULL, const XMLCh* authncontext_class=NULL, const XMLCh* authncontext_decl=NULL, const std::vector* tokens=NULL, diff --git a/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp b/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp index a11dcc7..c1b3805 100644 --- a/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp +++ b/shibsp/attribute/resolver/impl/ChainingAttributeResolver.cpp @@ -49,7 +49,7 @@ namespace shibsp { const XMLCh* authncontext_decl, const vector* tokens, const vector* attributes - ) : m_app(application), m_issuer(issuer), m_protocol(protocol), m_authclass(authncontext_class), m_authdecl(authncontext_decl), m_session(NULL) { + ) : m_app(application), m_issuer(issuer), m_protocol(protocol), m_nameid(nameid), m_authclass(authncontext_class), m_authdecl(authncontext_decl), m_session(NULL) { if (tokens) m_tokens.assign(tokens->begin(), tokens->end()); if (attributes) @@ -104,7 +104,7 @@ namespace shibsp { const Application& application, const EntityDescriptor* issuer, const XMLCh* protocol, - const NameID* nameid, + const NameID* nameid=NULL, const XMLCh* authncontext_class=NULL, const XMLCh* authncontext_decl=NULL, const vector* tokens=NULL, diff --git a/shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp b/shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp index c75b2e5..8a594cb 100644 --- a/shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp +++ b/shibsp/attribute/resolver/impl/QueryAttributeResolver.cpp @@ -74,7 +74,7 @@ namespace shibsp { const Application& application, const EntityDescriptor* issuer, const XMLCh* protocol, - const NameID* nameid, + const NameID* nameid=NULL, const XMLCh* authncontext_class=NULL, const XMLCh* authncontext_decl=NULL, const vector* tokens=NULL, @@ -181,7 +181,7 @@ namespace shibsp { const Application& application, const EntityDescriptor* issuer, const XMLCh* protocol, - const NameID* nameid, + const NameID* nameid=NULL, const XMLCh* authncontext_class=NULL, const XMLCh* authncontext_decl=NULL, const vector* tokens=NULL, -- 2.1.4