activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r948480 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/decaf/internal/net/ssl/openssl/OpenSSLSocket.cpp
Date Wed, 26 May 2010 15:48:29 GMT
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 )



Mime
View raw message