diff options
| author | Gordon Sim <gsim@apache.org> | 2013-08-19 21:01:18 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-08-19 21:01:18 +0000 |
| commit | f182d596fe7523adc64c00f7105fafb629c70e69 (patch) | |
| tree | deaa53b089ca2a04a114f0eaf676123a9a0139bb /cpp/src/qpid/SaslFactory.cpp | |
| parent | aa0b6dd83494993c083c9a03fc9098f3f7c65955 (diff) | |
| download | qpid-python-f182d596fe7523adc64c00f7105fafb629c70e69.tar.gz | |
QPID-5083: provide simple default where sasl functionality is not available
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1515602 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/SaslFactory.cpp')
| -rw-r--r-- | cpp/src/qpid/SaslFactory.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpp/src/qpid/SaslFactory.cpp b/cpp/src/qpid/SaslFactory.cpp index 97e1d6e18a..bd771fc920 100644 --- a/cpp/src/qpid/SaslFactory.cpp +++ b/cpp/src/qpid/SaslFactory.cpp @@ -20,6 +20,7 @@ */ #include "qpid/SaslFactory.h" #include "qpid/SaslServer.h" +#include "qpid/NullSaslClient.h" #include "qpid/NullSaslServer.h" #include <map> #include <string.h> @@ -48,7 +49,8 @@ SaslFactory& SaslFactory::getInstance() std::auto_ptr<Sasl> SaslFactory::create( const std::string &, const std::string &, const std::string &, const std::string &, int, int, bool ) { - return std::auto_ptr<Sasl>(); + std::auto_ptr<Sasl> client(new NullSaslClient); + return client; } std::auto_ptr<SaslServer> SaslFactory::createServer(const std::string& realm, bool /*encryptionRequired*/, const qpid::sys::SecuritySettings&) |
