From: Scott Cantor Date: Thu, 15 Feb 2007 22:45:26 +0000 (+0000) Subject: Correct constness of transport API, update version. X-Git-Tag: 2.0-alpha1~85 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=b7f3252f4bceb81d79fbe8f3d3a7b10e5f027b8b Correct constness of transport API, update version. --- diff --git a/saml/binding/SOAPClient.h b/saml/binding/SOAPClient.h index e2d741d..e26be48 100644 --- a/saml/binding/SOAPClient.h +++ b/saml/binding/SOAPClient.h @@ -91,7 +91,7 @@ namespace opensaml { * * @param transport reference to transport layer */ - void prepareTransport(const xmltooling::SOAPTransport& transport); + void prepareTransport(xmltooling::SOAPTransport& transport); /** Reference to security policy to apply. */ SecurityPolicy& m_policy; diff --git a/saml/binding/impl/SOAPClient.cpp b/saml/binding/impl/SOAPClient.cpp index a68d262..22e4f8a 100644 --- a/saml/binding/impl/SOAPClient.cpp +++ b/saml/binding/impl/SOAPClient.cpp @@ -55,9 +55,9 @@ void SOAPClient::send(const soap11::Envelope& env, const KeyInfoSource& peer, co soap11::SOAPClient::send(env, peer, endpoint); } -void SOAPClient::prepareTransport(const xmltooling::SOAPTransport& transport) +void SOAPClient::prepareTransport(xmltooling::SOAPTransport& transport) { - const HTTPSOAPTransport* http = dynamic_cast(&transport); + HTTPSOAPTransport* http = dynamic_cast(&transport); if (http) { http->setRequestHeader("SOAPAction", "http://www.oasis-open.org/committees/security"); http->setRequestHeader("Xerces-C", XERCES_FULLVERSIONDOT); diff --git a/saml/version.h b/saml/version.h index 4177b2e..b8581a0 100644 --- a/saml/version.h +++ b/saml/version.h @@ -37,7 +37,7 @@ * AND DO NOT MODIFY ANYTHING ELSE IN THIS VERSION HEADER FILE */ -#define OPENSAML_VERSION_MAJOR 1 +#define OPENSAML_VERSION_MAJOR 2 #define OPENSAML_VERSION_MINOR 0 #define OPENSAML_VERSION_REVISION 0