[shibboleth-sp2] 53/89: SSPCPP-691 Use utility function
Ferenc Wágner
wferi at moszumanska.debian.org
Thu Sep 1 09:24:08 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi pushed a commit to branch master
in repository shibboleth-sp2.
commit 3e8deff8330abfef10b50d29bad1e208f19fd40f
Author: Rod Widdowson <rdw at steadingsoftware.com>
Date: Thu Jun 9 12:50:08 2016 +0100
SSPCPP-691 Use utility function
https://issues.shibboleth.net/jira/browse/SSPCPP-691
Although the schema doesn't allow ignoreCase we will use the same
helper method to initialize caseSensitive.
---
shibsp/attribute/Attribute.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/shibsp/attribute/Attribute.cpp b/shibsp/attribute/Attribute.cpp
index 716c5f0..2a75aba 100644
--- a/shibsp/attribute/Attribute.cpp
+++ b/shibsp/attribute/Attribute.cpp
@@ -73,7 +73,6 @@ namespace shibsp {
chLatin_D, chLatin_e, chLatin_c, chLatin_o, chLatin_d, chLatin_e, chLatin_r, chNull
};
- static const XMLCh caseSensitive[] = UNICODE_LITERAL_13(c,a,s,e,S,e,n,s,i,t,i,v,e);
static const XMLCh hashAlg[] = UNICODE_LITERAL_7(h,a,s,h,A,l,g);
static const XMLCh internal[] = UNICODE_LITERAL_8(i,n,t,e,r,n,a,l);
static const XMLCh langAware[] = UNICODE_LITERAL_9(l,a,n,g,A,w,a,r,e);
@@ -104,7 +103,7 @@ void shibsp::registerAttributeDecoders()
}
AttributeDecoder::AttributeDecoder(const DOMElement *e)
- : m_caseSensitive(XMLHelper::getAttrBool(e, true, caseSensitive)),
+ : m_caseSensitive(XMLHelper::getCaseSensitive(e, true)),
m_internal(XMLHelper::getAttrBool(e, false, internal)),
m_langAware(XMLHelper::getAttrBool(e, false, langAware)),
m_hashAlg(XMLHelper::getAttrString(e, nullptr, hashAlg))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/shibboleth-sp2.git
More information about the Pkg-shibboleth-devel
mailing list