Shifted getCert call from IAuthority to Trust
authorScott Cantor <cantor.2@osu.edu>
Mon, 19 May 2003 15:50:19 +0000 (15:50 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 19 May 2003 15:50:19 +0000 (15:50 +0000)
shib/ShibPOSTProfile.cpp
shib/XMLMetadata.cpp
shib/shib.h

index af4c3a9..d73ae18 100644 (file)
@@ -174,7 +174,8 @@ SAMLResponse* ShibPOSTProfile::accept(const XMLByte* buf, XMLCh** originSitePtr)
     if (!bFound)
         throw TrustException(SAMLException::RESPONDER, "ShibPOSTProfile::accept() detected an untrusted HS for the origin site");
 
-    Iterator<XSECCryptoX509*> certs=hs->getCertificates();
+    Trust t;
+    Iterator<XSECCryptoX509*> certs=t.getCertificates(hs->getName());
 
     // Signature verification now takes place. We check the assertion and the response.
     // Assertion signing is optional, response signing is mandatory.
index f883fed..e0adbdf 100644 (file)
@@ -97,7 +97,6 @@ public:
         
         const XMLCh* getName() const { return m_name; }
         const char* getURL() const { return m_url.get(); }
-        Iterator<XSECCryptoX509*> getCertificates() const { return Iterator<XSECCryptoX509*>(); }
         
     private:
         const XMLCh* m_name;
index edf6a50..c1e198b 100644 (file)
@@ -121,7 +121,6 @@ namespace shibboleth
     {
         virtual const XMLCh* getName() const=0;
         virtual const char* getURL() const=0;
-        virtual saml::Iterator<XSECCryptoX509*> getCertificates() const=0;
         virtual ~IAuthority() {}
     };