[cpp-sp] 02/03: SSPCPP-691 Use utility function

Rod Widdowson rdw at steadingsoftware.com
Fri Jun 10 05:46:06 EDT 2016


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch master
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=3e8deff8330abfef10b50d29bad1e208f19fd40f

commit 3e8deff8330abfef10b50d29bad1e208f19fd40f
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: 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))

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list