Don't follow references by default.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 8 Jun 2010 18:29:04 +0000 (18:29 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Tue, 8 Jun 2010 18:29:04 +0000 (18:29 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@756 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/security/impl/InlineKeyResolver.cpp

index 6bf427f..ab1d418 100644 (file)
@@ -104,13 +104,13 @@ namespace xmltooling {
             m_credctx = context;
         }
 
-        void resolve(const KeyInfo* keyInfo, int types=0, bool followRefs=true);
-        void resolve(DSIGKeyInfoList* keyInfo, int types=0, bool followRefs=true);
+        void resolve(const KeyInfo* keyInfo, int types=0, bool followRefs=false);
+        void resolve(DSIGKeyInfoList* keyInfo, int types=0, bool followRefs=false);
 
     private:
-        bool resolveCerts(const KeyInfo* keyInfo, bool followRefs=true);
-        bool resolveKey(const KeyInfo* keyInfo, bool followRefs=true);
-        bool resolveCRLs(const KeyInfo* keyInfo, bool followRefs=true);
+        bool resolveCerts(const KeyInfo* keyInfo, bool followRefs=false);
+        bool resolveKey(const KeyInfo* keyInfo, bool followRefs=false);
+        bool resolveCRLs(const KeyInfo* keyInfo, bool followRefs=false);
 
         KeyInfoCredentialContext* m_credctx;
     };
@@ -121,7 +121,7 @@ namespace xmltooling {
     {
     public:
         InlineKeyResolver(const DOMElement* e)
-            : m_followRefs(XMLHelper::getNodeValueAsBool(e ? e->getAttributeNodeNS(nullptr, keyInfoReferences) : nullptr, true)) {
+            : m_followRefs(XMLHelper::getNodeValueAsBool(e ? e->getAttributeNodeNS(nullptr, keyInfoReferences) : nullptr, false)) {
         }
 
         virtual ~InlineKeyResolver() {}