Need to use SP-specific policy subclass for SOAP client.
[shibboleth/sp.git] / shib-target / shib-handlers.cpp
index b5f2105..8c2583b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2005 Internet2
+ *  Copyright 2001-2007 Internet2
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -75,7 +75,7 @@ namespace {
     SAML1Consumer(const DOMElement* e);
     ~SAML1Consumer();
     pair<bool,long> run(SPRequest& request, bool isHandler=true) const;
-    DDF receive(const DDF& in);
+    void receive(DDF& in, ostream& out);
   private:
     string m_address;
     static int counter;
@@ -285,7 +285,7 @@ SAML1Consumer::~SAML1Consumer()
  *      key
  *      provider_id
  */
-DDF SAML1Consumer::receive(const DDF& in)
+void SAML1Consumer::receive(DDF& in, ostream& sink)
 {
 #ifdef _DEBUG
     xmltooling::NDC ndc("receive");
@@ -448,7 +448,7 @@ DDF SAML1Consumer::receive(const DDF& in)
     out.addmember("key").string(key.c_str());
     out.addmember("provider_id").string(oname.get());
 
-    return out;
+    sink << out;
 }
 
 pair<bool,long> SAML1Consumer::run(SPRequest& request, bool isHandler) const