diff options
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/ConnectionHandler.cpp | 4 | ||||
| -rw-r--r-- | qpid/cpp/src/qpid/broker/amqp/Authorise.h | 1 | ||||
| -rw-r--r-- | qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp | 16 |
3 files changed, 11 insertions, 10 deletions
diff --git a/qpid/cpp/src/qpid/broker/ConnectionHandler.cpp b/qpid/cpp/src/qpid/broker/ConnectionHandler.cpp index fd4af963ad..09f774da62 100644 --- a/qpid/cpp/src/qpid/broker/ConnectionHandler.cpp +++ b/qpid/cpp/src/qpid/broker/ConnectionHandler.cpp @@ -109,10 +109,10 @@ void ConnectionHandler::setSecureConnection(SecureConnection* secured) handler->secured = secured; } -ConnectionHandler::ConnectionHandler(amqp_0_10::Connection& connection, bool isClient) : +ConnectionHandler::ConnectionHandler(qpid::broker::amqp_0_10::Connection& connection, bool isClient) : handler(new Handler(connection, isClient)) {} -ConnectionHandler::Handler::Handler(amqp_0_10::Connection& c, bool isClient) : +ConnectionHandler::Handler::Handler(qpid::broker::amqp_0_10::Connection& c, bool isClient) : proxy(c.getOutput()), connection(c), serverMode(!isClient), secured(0), isOpen(false) diff --git a/qpid/cpp/src/qpid/broker/amqp/Authorise.h b/qpid/cpp/src/qpid/broker/amqp/Authorise.h index 7bdb75375f..e429c60ab8 100644 --- a/qpid/cpp/src/qpid/broker/amqp/Authorise.h +++ b/qpid/cpp/src/qpid/broker/amqp/Authorise.h @@ -21,6 +21,7 @@ * under the License. * */ +#include <string> #include <boost/shared_ptr.hpp> namespace qpid { diff --git a/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp b/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp index 9379d20b06..98c7516ebe 100644 --- a/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp +++ b/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp @@ -22,7 +22,7 @@ // This source is only used on Windows; SSPI is the Windows mechanism for // accessing authentication mechanisms, analogous to Cyrus SASL. -#include "qpid/broker/Connection.h" +#include "qpid/broker/amqp_0_10/Connection.h" #include "qpid/broker/Broker.h" #include "qpid/log/Statement.h" #include "qpid/framing/reply_exceptions.h" @@ -41,10 +41,10 @@ namespace broker { class NullAuthenticator : public SaslAuthenticator { - Connection& connection; + qpid::broker::amqp_0_10::Connection& connection; framing::AMQP_ClientProxy::Connection client; public: - NullAuthenticator(Connection& connection); + NullAuthenticator(qpid::broker::amqp_0_10::Connection& connection); ~NullAuthenticator(); void getMechanisms(framing::Array& mechanisms); void start(const std::string& mechanism, const std::string* response); @@ -55,11 +55,11 @@ public: class SspiAuthenticator : public SaslAuthenticator { HANDLE userToken; - Connection& connection; + qpid::broker::amqp_0_10::Connection& connection; framing::AMQP_ClientProxy::Connection client; public: - SspiAuthenticator(Connection& connection); + SspiAuthenticator(qpid::broker::amqp_0_10::Connection& connection); ~SspiAuthenticator(); void getMechanisms(framing::Array& mechanisms); void start(const std::string& mechanism, const std::string* response); @@ -83,7 +83,7 @@ void SaslAuthenticator::fini(void) return; } -std::auto_ptr<SaslAuthenticator> SaslAuthenticator::createAuthenticator(Connection& c) +std::auto_ptr<SaslAuthenticator> SaslAuthenticator::createAuthenticator(qpid::broker::amqp_0_10::Connection& c) { if (c.getBroker().getOptions().auth) { return std::auto_ptr<SaslAuthenticator>(new SspiAuthenticator(c)); @@ -92,7 +92,7 @@ std::auto_ptr<SaslAuthenticator> SaslAuthenticator::createAuthenticator(Connecti } } -NullAuthenticator::NullAuthenticator(Connection& c) : connection(c), client(c.getOutput()) {} +NullAuthenticator::NullAuthenticator(qpid::broker::amqp_0_10::Connection& c) : connection(c), client(c.getOutput()) {} NullAuthenticator::~NullAuthenticator() {} void NullAuthenticator::getMechanisms(Array& mechanisms) @@ -125,7 +125,7 @@ std::auto_ptr<SecurityLayer> NullAuthenticator::getSecurityLayer(uint16_t) } -SspiAuthenticator::SspiAuthenticator(Connection& c) : userToken(INVALID_HANDLE_VALUE), connection(c), client(c.getOutput()) +SspiAuthenticator::SspiAuthenticator(qpid::broker::amqp_0_10::Connection& c) : userToken(INVALID_HANDLE_VALUE), connection(c), client(c.getOutput()) { } |
