https://issues.shibboleth.net/jira/browse/CPPXT-71
authorScott Cantor <cantor.2@osu.edu>
Tue, 1 Mar 2011 23:30:10 +0000 (23:30 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 1 Mar 2011 23:30:10 +0000 (23:30 +0000)
xmltooling/security/impl/FilesystemCredentialResolver.cpp

index d92fd37..26d3dc3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2010 Internet2
+ *  Copyright 2001-2011 Internet2
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -348,6 +348,10 @@ FilesystemCredentialResolver::FilesystemCredentialResolver(const DOMElement* e)
             if (e->hasAttributeNS(nullptr, extractNames))
                 child->setAttributeNS(nullptr, extractNames, e->getAttributeNS(nullptr, extractNames));
         }
+        if (e->hasAttributeNS(nullptr, _use)) {
+            dummy->setAttributeNS(nullptr, _use, e->getAttributeNS(nullptr, _use));
+        }
+
         e = dummy;  // reset "root" to the dummy config element
     }