summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorKenneth Anthony Giusti <kgiusti@apache.org>2010-01-29 15:48:09 +0000
committerKenneth Anthony Giusti <kgiusti@apache.org>2010-01-29 15:48:09 +0000
commitddddc05ca6b85246be27dd7e121d17d66bfe42b9 (patch)
treeb957c1441e31c4de904987014e5ffd0d46fe4794 /cpp
parent28ef37542ba19b088f60f8b3542f9f73127a911d (diff)
downloadqpid-python-ddddc05ca6b85246be27dd7e121d17d66bfe42b9.tar.gz
QPID-2374: fix conditional compile based on config
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@904525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/broker/SaslAuthenticator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/SaslAuthenticator.cpp b/cpp/src/qpid/broker/SaslAuthenticator.cpp
index 4769789bff..b083730356 100644
--- a/cpp/src/qpid/broker/SaslAuthenticator.cpp
+++ b/cpp/src/qpid/broker/SaslAuthenticator.cpp
@@ -148,10 +148,13 @@ void NullAuthenticator::getMechanisms(Array& mechanisms)
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.");
}