qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r732292 - /qpid/trunk/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp
Date Wed, 07 Jan 2009 09:54:42 GMT
Author: gsim
Date: Wed Jan  7 01:54:41 2009
New Revision: 732292

URL: http://svn.apache.org/viewvc?rev=732292&view=rev
Log:
Fix for windows build: add implementations of the getSecurityLayer()


Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp?rev=732292&r1=732291&r2=732292&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/windows/SaslAuthenticator.cpp Wed Jan  7 01:54:41
2009
@@ -29,6 +29,7 @@
 #include <windows.h>
 
 using namespace qpid::framing;
+using qpid::sys::SecurityLayer;
 
 namespace qpid {
 namespace broker {
@@ -43,6 +44,7 @@
     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 @@
     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 @@
     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 @@
   QPID_LOG(info, "SASL: Need another step!!!");
 }
 
+std::auto_ptr<SecurityLayer> SspiAuthenticator::getSecurityLayer(uint16_t)
+{
+    std::auto_ptr<SecurityLayer> securityLayer;
+    return securityLayer;
+}
+
 }}



Mime
View raw message