summaryrefslogtreecommitdiff
path: root/qpid
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
commit150bc8168d89bd2c97f902ff4846a9bafcff1f3d (patch)
tree19e1d02e95f7f749e7e32439863121146707194b /qpid
parentef5d60dfd1987121a3a96eba09e55f593f783004 (diff)
downloadqpid-python-150bc8168d89bd2c97f902ff4846a9bafcff1f3d.tar.gz
QPID-2374: fix conditional compile based on config
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@904525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid')
-rw-r--r--qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp b/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp
index 4769789bff..b083730356 100644
--- a/qpid/cpp/src/qpid/broker/SaslAuthenticator.cpp
+++ b/qpid/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.");
}