Mercurial > 510Connectbot
changeset 37:0395ca628303 tn5250
start tn5250 integration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 10 Jun 2014 16:14:36 -0700 |
parents | bcadd92f5e0a |
children | 011462bddcf1 |
files | src/com/five_ten_sg/connectbot/transport/TN5250.java src/org/tn5250j/framework/tn5250/tnvt.java |
diffstat | 2 files changed, 1 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java Tue Jun 10 15:57:42 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java Tue Jun 10 16:14:36 2014 -0700 @@ -128,6 +128,7 @@ public void connect() { screen52 = new Screen5250(); handler = new tnvt(screen52, true, false, bridge, manager); + handler.setSSLType("TLS"); screen52.setVT(handler); screen52.setBuffer(buffer); connected = handler.connect(host.getHostname(), host.getPort());
--- a/src/org/tn5250j/framework/tn5250/tnvt.java Tue Jun 10 15:57:42 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/tnvt.java Tue Jun 10 16:14:36 2014 -0700 @@ -266,24 +266,6 @@ public final boolean connect(String hostname, int port) { - - //// We will now see if there are any bypass signon parameters to be - //// processed. The system properties override these parameters so - //// have precidence if specified. - //Properties props = controller.getConnectionProperties(); - //if (user == null && props.containsKey("SESSION_CONNECT_USER")) { - // user = props.getProperty("SESSION_CONNECT_USER"); - // Log.i(TAG," user -> " + user + " " + controller.getSessionName()); - // if (props.containsKey("SESSION_CONNECT_PASSWORD")) - // password = props.getProperty("SESSION_CONNECT_PASSWORD"); - // if (props.containsKey("SESSION_CONNECT_LIBRARY")) - // library = props.getProperty("SESSION_CONNECT_LIBRARY"); - // if (props.containsKey("SESSION_CONNECT_MENU")) - // initialMenu = props.getProperty("SESSION_CONNECT_MENU"); - // if (props.containsKey("SESSION_CONNECT_PROGRAM")) - // program = props.getProperty("SESSION_CONNECT_PROGRAM"); - //} - try { this.hostname = hostname; this.port = port; @@ -295,8 +277,6 @@ Log.w(TAG,"setStatus(ON) " + exc.getMessage()); } - // sock = new Socket(s, port); - //smk - For SSL compability SocketConnector sc = new SocketConnector(); if (sslType != null) sc.setSSLType(sslType); sock = sc.createSocket(hostname, port, bridge, manager);