diff options
| author | Alan Conway <aconway@apache.org> | 2012-12-19 21:24:04 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2012-12-19 21:24:04 +0000 |
| commit | b0549b2fc0067ae47ab627e56e1ac1b448de4bc8 (patch) | |
| tree | 2e78f5066a1126147852ad7e1e17a3506cf99d03 /qpid/cpp/src | |
| parent | 0bb56e7d2cb945f65b218a735ccd809ddfa9bf5e (diff) | |
| download | qpid-python-b0549b2fc0067ae47ab627e56e1ac1b448de4bc8.tar.gz | |
QPID-4514: Remove obsolete cluster code: Connection::isAuthenticated
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1424135 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Connection.cpp | 4 | ||||
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Connection.h | 9 | ||||
| -rw-r--r-- | qpid/cpp/src/qpid/broker/Queue.h | 2 | ||||
| -rw-r--r-- | qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp | 10 |
4 files changed, 6 insertions, 19 deletions
diff --git a/qpid/cpp/src/qpid/broker/Connection.cpp b/qpid/cpp/src/qpid/broker/Connection.cpp index ffc5bd413a..43d7b04783 100644 --- a/qpid/cpp/src/qpid/broker/Connection.cpp +++ b/qpid/cpp/src/qpid/broker/Connection.cpp @@ -84,12 +84,10 @@ Connection::Connection(ConnectionOutputHandler* out_, std::string& mgmtId_, const qpid::sys::SecuritySettings& external, bool link_, - uint64_t objectId_, - bool authenticated_ + uint64_t objectId_ ) : ConnectionState(out_, broker_), securitySettings(external), - authenticated(authenticated_), adapter(*this, link_), link(link_), mgmtClosing(false), diff --git a/qpid/cpp/src/qpid/broker/Connection.h b/qpid/cpp/src/qpid/broker/Connection.h index e418dd29bd..23267a9ded 100644 --- a/qpid/cpp/src/qpid/broker/Connection.h +++ b/qpid/cpp/src/qpid/broker/Connection.h @@ -83,8 +83,7 @@ class Connection : public sys::ConnectionInputHandler, const std::string& mgmtId, const qpid::sys::SecuritySettings&, bool isLink = false, - uint64_t objectId = 0, - bool authenticated=true); + uint64_t objectId = 0); ~Connection (); @@ -141,7 +140,7 @@ class Connection : public sys::ConnectionInputHandler, void setHeartbeatInterval(uint16_t heartbeat); void sendHeartbeat(); void restartTimeout(); - + template <class F> void eachSessionHandler(F f) { for (ChannelMap::iterator i = channels.begin(); i != channels.end(); ++i) f(*ptr_map_ptr(i)); @@ -149,9 +148,6 @@ class Connection : public sys::ConnectionInputHandler, void setSecureConnection(SecureConnection* secured); - /** True if this connection is authenticated */ - bool isAuthenticated() const { return authenticated; } - const qpid::sys::SecuritySettings& getExternalSecuritySettings() const { return securitySettings; @@ -172,7 +168,6 @@ class Connection : public sys::ConnectionInputHandler, ChannelMap channels; qpid::sys::SecuritySettings securitySettings; - bool authenticated; ConnectionHandler adapter; const bool link; bool mgmtClosing; diff --git a/qpid/cpp/src/qpid/broker/Queue.h b/qpid/cpp/src/qpid/broker/Queue.h index a1f724af27..602ed6931b 100644 --- a/qpid/cpp/src/qpid/broker/Queue.h +++ b/qpid/cpp/src/qpid/broker/Queue.h @@ -370,7 +370,7 @@ class Queue : public boost::enable_shared_from_this<Queue>, * * The _caller_ must ensure that any messages after pos have been dequeued. * - * Used by HA/cluster code for queue replication. + * Used by HA code for queue replication. */ QPID_BROKER_EXTERN void setPosition(framing::SequenceNumber pos); diff --git a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp b/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp index a02882d05c..526caa9ff3 100644 --- a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp +++ b/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp @@ -169,14 +169,8 @@ void SaslAuthenticator::fini(void) std::auto_ptr<SaslAuthenticator> SaslAuthenticator::createAuthenticator(Connection& c ) { if (c.getBroker().getOptions().auth) { - // The cluster creates non-authenticated connections for internal shadow connections - // that are never connected to an external client. - if ( !c.isAuthenticated() ) - return std::auto_ptr<SaslAuthenticator>( - new NullAuthenticator(c, c.getBroker().getOptions().requireEncrypted)); - else - return std::auto_ptr<SaslAuthenticator>( - new CyrusAuthenticator(c, c.getBroker().getOptions().requireEncrypted)); + return std::auto_ptr<SaslAuthenticator>( + new CyrusAuthenticator(c, c.getBroker().getOptions().requireEncrypted)); } else { QPID_LOG(debug, "SASL: No Authentication Performed"); return std::auto_ptr<SaslAuthenticator>(new NullAuthenticator(c, c.getBroker().getOptions().requireEncrypted)); |
