From 2cc8031b792e2001299d616171848935f59d7244 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Wed, 27 Dec 2006 21:15:56 +0000 Subject: [PATCH] Pass KeyResolver into PKIX layer. --- samltest/security/AbstractPKIXTrustEngineTest.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/samltest/security/AbstractPKIXTrustEngineTest.h b/samltest/security/AbstractPKIXTrustEngineTest.h index 422bf94..67f4ffb 100644 --- a/samltest/security/AbstractPKIXTrustEngineTest.h +++ b/samltest/security/AbstractPKIXTrustEngineTest.h @@ -36,7 +36,8 @@ namespace { KeyResolver* m_resolver; bool m_done; public: - SampleIterator() : m_resolver(NULL), m_done(false) { + SampleIterator(const KeyResolver& keyResolver) + : PKIXValidationInfoIterator(keyResolver), m_resolver(NULL), m_done(false) { string config = data_path + "security/FilesystemKeyResolver.xml"; ifstream in(config.c_str()); DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(in); @@ -71,9 +72,12 @@ namespace { } }; - PKIXValidationInfoIterator* getPKIXValidationInfoIterator(const KeyInfoSource& keyInfoSource) const { + PKIXValidationInfoIterator* getPKIXValidationInfoIterator( + const KeyInfoSource& keyInfoSource, + const KeyResolver& keyResolver + ) const { dynamic_cast(keyInfoSource); - return new SampleIterator(); + return new SampleIterator(keyResolver); } }; }; -- 2.1.4