2003/12/13 00:44:41
[org.ibex.core.git] / src / org / xwt / HTTP.java
index e82e23c..5f89ce3 100644 (file)
@@ -189,7 +189,7 @@ public class HTTP {
     // Methods to attempt socket creation /////////////////////////////////////////////////////////////////
 
     private Socket getSocket(String host, int port, boolean ssl, boolean negotiate) throws IOException {
-        Socket ret = ssl ? new TinySSL(host, port, negotiate) : new Socket(java.net.InetAddress.getByName(host), port);
+        Socket ret = ssl ? new SSL(host, port, negotiate) : new Socket(java.net.InetAddress.getByName(host), port);
         ret.setTcpNoDelay(true);
         return ret;
     }
@@ -222,7 +222,7 @@ public class HTTP {
                 String s = br.readLine();
                 if (s.charAt(9) != '2') throw new HTTPException("proxy refused CONNECT method: \"" + s + "\"");
                 while (br.readLine().length() > 0) { };
-                ((TinySSL)sock).negotiate();
+                ((SSL)sock).negotiate();
             }
             return sock;
 
@@ -270,7 +270,7 @@ public class HTTP {
             dis.skip(6);                                 // ip/port
             
             if ((int)(success & 0xff) == 90) {
-                if (ssl) ((TinySSL)sock).negotiate();
+                if (ssl) ((SSL)sock).negotiate();
                 return sock;
             }
             if (Log.on) Log.log(this, "SOCKS server denied access, code " + (success & 0xff));