You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by nm...@apache.org on 2007/10/28 15:39:58 UTC

svn commit: r589365 - /activemq/activemq-cpp/branches/activemq-cpp-ssl/src/main/activemq/network/SSLSocket.cpp

Author: nmittler
Date: Sun Oct 28 07:39:58 2007
New Revision: 589365

URL: http://svn.apache.org/viewvc?rev=589365&view=rev
Log:
[AMQCPP-140] Code cleanup

Modified:
    activemq/activemq-cpp/branches/activemq-cpp-ssl/src/main/activemq/network/SSLSocket.cpp

Modified: activemq/activemq-cpp/branches/activemq-cpp-ssl/src/main/activemq/network/SSLSocket.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/branches/activemq-cpp-ssl/src/main/activemq/network/SSLSocket.cpp?rev=589365&r1=589364&r2=589365&view=diff
==============================================================================
--- activemq/activemq-cpp/branches/activemq-cpp-ssl/src/main/activemq/network/SSLSocket.cpp (original)
+++ activemq/activemq-cpp/branches/activemq-cpp-ssl/src/main/activemq/network/SSLSocket.cpp Sun Oct 28 07:39:58 2007
@@ -98,25 +98,25 @@
             switch (SSL_get_error (ssl, result))
             {
                 case SSL_ERROR_NONE:
-                // Apart from verification we are done.
-                verifyPeerCertificate( host );
-                return;
+                    // Apart from verification we are done.
+                    verifyPeerCertificate( host );
+                    return;
 
                 case SSL_ERROR_SSL:
                 case SSL_ERROR_ZERO_RETURN:
-                TcpSocket::close();
-                throw SocketException( __FILE__, __LINE__,
-                        SSLError::getErrorString().c_str());
+                    TcpSocket::close();
+                    throw SocketException( __FILE__, __LINE__,
+                            SSLError::getErrorString().c_str());
 
                 case SSL_ERROR_WANT_READ:
                 case SSL_ERROR_WANT_WRITE:
-                // Repeat the operation.
-                break;
+                    // Repeat the operation.
+                    break;
 
                 case SSL_ERROR_SYSCALL:
-                TcpSocket::close();
-                throw SocketException( __FILE__, __LINE__,
-                        SocketError::getErrorString().c_str() );
+                    TcpSocket::close();
+                    throw SocketException( __FILE__, __LINE__,
+                            SocketError::getErrorString().c_str() );
             }
         }
     }