Update copyright.
[shibboleth/opensaml2.git] / saml / binding / impl / SOAPClient.cpp
index e97d326..0653036 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2006 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.
@@ -53,7 +53,6 @@ void SOAPClient::prepareTransport(const xmltooling::SOAPTransport& transport)
     const HTTPSOAPTransport* http = dynamic_cast<const HTTPSOAPTransport*>(&transport);
     if (http) {
         http->setRequestHeader("SOAPAction", "http://www.oasis-open.org/committees/security");
-        http->setRequestHeader("Shibboleth", PACKAGE_VERSION);
         http->setRequestHeader("Xerces-C", XERCES_FULLVERSIONDOT);
         http->setRequestHeader("XML-Security-C", XSEC_VERSION);
         http->setRequestHeader("OpenSAML-C", OPENSAML_FULLVERSIONDOT);
@@ -79,6 +78,7 @@ soap11::Envelope* SOAPClient::receive()
                 issuer->setName(parent->getEntityID());
                 m_policy.setIssuer(issuer);
                 m_policy.setIssuerMetadata(m_peer);
+                m_policy.setSecure(true);
             }
         }
         m_policy.evaluate(*(env.get()));