diff options
Diffstat (limited to 'cpp/src/qpid/broker/SecureConnection.cpp')
-rw-r--r-- | cpp/src/qpid/broker/SecureConnection.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/broker/SecureConnection.cpp b/cpp/src/qpid/broker/SecureConnection.cpp index 74aec239ca..5c1ebf3e8b 100644 --- a/cpp/src/qpid/broker/SecureConnection.cpp +++ b/cpp/src/qpid/broker/SecureConnection.cpp @@ -78,10 +78,13 @@ void SecureConnection:: setCodec(std::auto_ptr<ConnectionCodec> c) codec = c; } -void SecureConnection::activateSecurityLayer(std::auto_ptr<SecurityLayer> sl) +void SecureConnection::activateSecurityLayer(std::auto_ptr<SecurityLayer> sl, bool secureImmediately) { securityLayer = sl; securityLayer->init(codec.get()); + + if ( secureImmediately ) + secured = true; } }} // namespace qpid::broker |