diff options
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qpid/broker/SaslAuthenticator.cpp | 5 |
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."); } |