From ddddc05ca6b85246be27dd7e121d17d66bfe42b9 Mon Sep 17 00:00:00 2001 From: Kenneth Anthony Giusti Date: Fri, 29 Jan 2010 15:48:09 +0000 Subject: 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 --- cpp/src/qpid/broker/SaslAuthenticator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid') 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."); } -- cgit v1.2.1