tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/puretls PureTLSSocketFactory.java
Date Thu, 12 Jun 2003 04:30:41 GMT
billbarker    2003/06/11 21:30:41

  Modified:    util/java/org/apache/tomcat/util/net/puretls
                        PureTLSSocketFactory.java
  Log:
  Add some logging to help track down problems.
  
  The PureTLS/Cryptix error messages can be confusing.  This at least gives a stack trace.
  
  Revision  Changes    Path
  1.2       +4 -0      jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/puretls/PureTLSSocketFactory.java
  
  Index: PureTLSSocketFactory.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/net/puretls/PureTLSSocketFactory.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PureTLSSocketFactory.java	4 Oct 2002 20:03:10 -0000	1.1
  +++ PureTLSSocketFactory.java	12 Jun 2003 04:30:41 -0000	1.2
  @@ -79,6 +79,8 @@
   public class PureTLSSocketFactory
       extends org.apache.tomcat.util.net.ServerSocketFactory
   {
  +    static org.apache.commons.logging.Log logger =
  +	org.apache.commons.logging.LogFactory.getLog(PureTLSSocketFactory.class);
       static String defaultProtocol = "TLS";
       static boolean defaultClientAuth = false;
       static String defaultKeyStoreFile = "server.pem";
  @@ -172,6 +174,7 @@
   	    tmpContext.setPolicy(policy);
   	    context=tmpContext;
   	} catch (Exception e){
  +	    logger.info("Error initializing SocketFactory",e);
   	    throw new IOException(e.getMessage());
   	}
       }
  @@ -183,6 +186,7 @@
   	    Socket sock=socket.accept();
   	    return sock;
   	} catch (SSLException e){
  +            logger.debug("SSL handshake error",e);
               throw new SocketException("SSL handshake error" + e.toString());
   	}
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message