From 0824ce6f44b6474ec421dba19052ae62c3ef6a58 Mon Sep 17 00:00:00 2001 From: Michael Goulish Date: Fri, 22 Oct 2010 07:13:34 +0000 Subject: Make the "SASL enabled" log message also print out the SASL version number. This will be useful in one test that depends on some SASL functionality that was not available before 2.1.22 . git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1026227 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/broker/Broker.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/src/qpid/broker/Broker.cpp b/qpid/cpp/src/qpid/broker/Broker.cpp index c93949e33f..7f036ab6fd 100644 --- a/qpid/cpp/src/qpid/broker/Broker.cpp +++ b/qpid/cpp/src/qpid/broker/Broker.cpp @@ -55,6 +55,8 @@ #include "qpid/Url.h" #include "qpid/Version.h" +#include "sasl/sasl.h" + #include #include @@ -271,7 +273,9 @@ Broker::Broker(const Broker::Options& conf) : */ if (conf.auth) { SaslAuthenticator::init(qpid::saslName, conf.saslConfigPath); - QPID_LOG(info, "SASL enabled"); + int saslVersion = (SASL_VERSION_MAJOR << 16) + (SASL_VERSION_MINOR << 8) + + SASL_VERSION_STEP; + QPID_LOG(info, "SASL enabled : version " << saslVersion); } else { QPID_LOG(notice, "SASL disabled: No Authentication Performed"); } -- cgit v1.2.1