You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2010/05/26 17:48:29 UTC

svn commit: r948480 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp

Author: tabish
Date: Wed May 26 15:48:28 2010
New Revision: 948480

URL: http://svn.apache.org/viewvc?rev=948480&view=rev
Log:
https://issues.apache.org/activemq/browse/AMQCPP-140

Add compilation guards.

Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp?rev=948480&r1=948479&r2=948480&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp Wed May 26 15:48:28 2010
@@ -301,6 +301,7 @@ void OpenSSLSocket::startHandshake() {
 
     try {
 
+#ifdef HAVE_OPENSSL
         synchronized( &(this->data->handshakeLock ) ) {
 
             if( this->data->handshakeStarted ) {
@@ -360,6 +361,9 @@ void OpenSSLSocket::startHandshake() {
 
             this->data->handshakeCompleted = true;
         }
+#else
+        throw IOException( __FILE__, __LINE__, "SSL Not Supported." );
+#endif
     }
     DECAF_CATCH_RETHROW( IOException )
     DECAF_CATCHALL_THROW( IOException )