You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2010/01/29 16:48:09 UTC

svn commit: r904525 - /qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp

Author: kgiusti
Date: Fri Jan 29 15:48:09 2010
New Revision: 904525

URL: http://svn.apache.org/viewvc?rev=904525&view=rev
Log:
QPID-2374: fix conditional compile based on config

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

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp?rev=904525&r1=904524&r2=904525&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp Fri Jan 29 15:48:09 2010
@@ -148,10 +148,13 @@
 void NullAuthenticator::start(const string& mechanism, const string& response)
 {
     if (encrypt) {
+#if HAVE_SASL
         // encryption required - check to see if we are running over an
         // encrypted SSL connection.
         sasl_ssf_t external_ssf = (sasl_ssf_t) connection.getSSF();
-        if (external_ssf < 1) {   // < 1 == unencrypted
+        if (external_ssf < 1)    // < 1 == unencrypted
+#endif
+        {
             QPID_LOG(error, "Rejected un-encrypted connection.");
             throw ConnectionForcedException("Connection must be encrypted.");
         }



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org