From: Scott Cantor Date: Wed, 27 Dec 2006 21:15:56 +0000 (+0000) Subject: Pass KeyResolver into PKIX layer. X-Git-Tag: 2.0-alpha1~121 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=2cc8031b792e2001299d616171848935f59d7244 Pass KeyResolver into PKIX layer. --- 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); } }; };