From 55018c06cea284e4727ce4e43c97fe0c791c1458 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Tue, 8 Jun 2010 18:29:04 +0000 Subject: [PATCH 1/1] Don't follow references by default. --- xmltooling/security/impl/InlineKeyResolver.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xmltooling/security/impl/InlineKeyResolver.cpp b/xmltooling/security/impl/InlineKeyResolver.cpp index 6bf427f..ab1d418 100644 --- a/xmltooling/security/impl/InlineKeyResolver.cpp +++ b/xmltooling/security/impl/InlineKeyResolver.cpp @@ -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() {} -- 2.1.4