summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-01-07 09:54:41 +0000
committerGordon Sim <gsim@apache.org>2009-01-07 09:54:41 +0000
commite76832c5d237446129ad90232ea8ef5c61fe18db (patch)
tree10a889f5fe68518365f6fbda8c8ffd220a8addd6 /cpp
parent9a933ae9011d343a75929136269fe45c6b863a17 (diff)
downloadqpid-python-e76832c5d237446129ad90232ea8ef5c61fe18db.tar.gz
Fix for windows build: add implementations of the getSecurityLayer()
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@732292 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/broker/windows/SaslAuthenticator.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp b/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp
index a239987c0e..212d7c4db4 100644
--- a/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp
+++ b/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp
@@ -29,6 +29,7 @@
#include <windows.h>
using namespace qpid::framing;
+using qpid::sys::SecurityLayer;
namespace qpid {
namespace broker {
@@ -43,6 +44,7 @@ public:
void getMechanisms(framing::Array& mechanisms);
void start(const std::string& mechanism, const std::string& response);
void step(const std::string&) {}
+ std::auto_ptr<SecurityLayer> getSecurityLayer(uint16_t maxFrameSize);
};
class SspiAuthenticator : public SaslAuthenticator
@@ -57,6 +59,7 @@ public:
void getMechanisms(framing::Array& mechanisms);
void start(const std::string& mechanism, const std::string& response);
void step(const std::string& response);
+ std::auto_ptr<SecurityLayer> getSecurityLayer(uint16_t maxFrameSize);
};
bool SaslAuthenticator::available(void)
@@ -109,6 +112,12 @@ void NullAuthenticator::start(const string& mechanism, const string& response)
client.tune(framing::CHANNEL_MAX, connection.getFrameMax(), 0, 0);
}
+std::auto_ptr<SecurityLayer> NullAuthenticator::getSecurityLayer(uint16_t)
+{
+ std::auto_ptr<SecurityLayer> securityLayer;
+ return securityLayer;
+}
+
SspiAuthenticator::SspiAuthenticator(Connection& c) : userToken(INVALID_HANDLE_VALUE), connection(c), client(c.getOutput())
{
@@ -172,4 +181,10 @@ void SspiAuthenticator::step(const string& response)
QPID_LOG(info, "SASL: Need another step!!!");
}
+std::auto_ptr<SecurityLayer> SspiAuthenticator::getSecurityLayer(uint16_t)
+{
+ std::auto_ptr<SecurityLayer> securityLayer;
+ return securityLayer;
+}
+
}}