activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nmitt...@apache.org
Subject svn commit: r589365 - /activemq/activemq-cpp/branches/activemq-cpp-ssl/src/main/activemq/network/SSLSocket.cpp
Date Sun, 28 Oct 2007 14:39:58 GMT
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() );
             }
         }
     }



Mime
View raw message