You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by jf...@apache.org on 2005/06/13 16:00:04 UTC

cvs commit: jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni BIOSSLServer.java

jfclere     2005/06/13 07:00:04

  Modified:    jni/examples/org/apache/tomcat/jni BIOSSLServer.java
  Log:
  Arrange it according to the new SSL and SSLSocket methods.
  
  Revision  Changes    Path
  1.2       +4 -3      jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/BIOSSLServer.java
  
  Index: BIOSSLServer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/jni/examples/org/apache/tomcat/jni/BIOSSLServer.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BIOSSLServer.java	10 Jun 2005 17:15:56 -0000	1.1
  +++ BIOSSLServer.java	13 Jun 2005 14:00:04 -0000	1.2
  @@ -107,9 +107,10 @@
                                      ":" + raddr.port);
               }
               // SSLCallBack.setsock(clientSock);
  -            int retcode = SSLSocket.accept(serverCtx, clientSock, serverPool);
  +            long sslSocket = SSLSocket.attach(serverCtx, clientSock, serverPool);
  +            int retcode = SSLSocket.handshake(sslSocket);
               if (retcode<=0) {
  -                throw(new Exception("Can't SSL accept: " + SSLBIO.geterror(serverSSL, retcode)));
  +                throw(new Exception("Can't SSL accept: " + SSL.getLastError()));
               }
               
           } catch (Exception e) {
  
  
  

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