diff options
author | Gordon Sim <gsim@apache.org> | 2008-04-24 21:07:34 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-04-24 21:07:34 +0000 |
commit | 1c86294add5cbb640aac7f458c4de693de48dd9f (patch) | |
tree | 22d7774e00c7514c4b76be5cf8b50727b74fe4e3 /cpp/src/qpid/broker/SaslAuthenticator.cpp | |
parent | 96f12949244b5af2b717156823309b66fe7bfb84 (diff) | |
download | qpid-python-1c86294add5cbb640aac7f458c4de693de48dd9f.tar.gz |
Generate c++ code from final 0-10 spec
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@651423 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/SaslAuthenticator.cpp')
-rw-r--r-- | cpp/src/qpid/broker/SaslAuthenticator.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cpp/src/qpid/broker/SaslAuthenticator.cpp b/cpp/src/qpid/broker/SaslAuthenticator.cpp index 9ca4069a12..56718502f1 100644 --- a/cpp/src/qpid/broker/SaslAuthenticator.cpp +++ b/cpp/src/qpid/broker/SaslAuthenticator.cpp @@ -23,6 +23,7 @@ #include "Connection.h" #include "qpid/log/Statement.h" +#include "qpid/framing/reply_exceptions.h" #if HAVE_SASL #include <sasl/sasl.h> @@ -37,7 +38,7 @@ namespace broker { class NullAuthenticator : public SaslAuthenticator { Connection& connection; - framing::AMQP_ClientProxy::Connection010 client; + framing::AMQP_ClientProxy::Connection client; public: NullAuthenticator(Connection& connection); ~NullAuthenticator(); @@ -52,7 +53,7 @@ class CyrusAuthenticator : public SaslAuthenticator { sasl_conn_t *sasl_conn; Connection& connection; - framing::AMQP_ClientProxy::Connection010 client; + framing::AMQP_ClientProxy::Connection client; void processAuthenticationStep(int code, const char *challenge, unsigned int challenge_len); @@ -117,7 +118,7 @@ void CyrusAuthenticator::init() // TODO: Change this to an exception signaling // server error, when one is available - throw CommandInvalidException("Unable to perform authentication"); + throw ConnectionForcedException("Unable to perform authentication"); } } @@ -146,7 +147,7 @@ void CyrusAuthenticator::getMechanisms(Array& mechanisms) // TODO: Change this to an exception signaling // server error, when one is available - throw CommandInvalidException("Mechanism listing failed"); + throw ConnectionForcedException("Mechanism listing failed"); } else { string mechanism; unsigned int start; |