diff options
| author | Ken Giusti <kgiusti@apache.org> | 2010-01-29 15:48:09 +0000 |
|---|---|---|
| committer | Ken Giusti <kgiusti@apache.org> | 2010-01-29 15:48:09 +0000 |
| commit | e227966ffe6b3c769b4828c8ee1e1387fe378d91 (patch) | |
| tree | b957c1441e31c4de904987014e5ffd0d46fe4794 /cpp/src | |
| parent | 4156716f28fb789a8d41dc5998571858ec4f2d82 (diff) | |
| download | qpid-python-e227966ffe6b3c769b4828c8ee1e1387fe378d91.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/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."); } |
