Mercurial > 510Connectbot
diff src/com/five_ten_sg/connectbot/transport/TN5250.java @ 68:cc7e3588a0f3 tn5250
use 5250 encryption config entry
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 13 Jun 2014 16:24:59 -0700 |
parents | e0c68988fe2e |
children | 294435151b0c |
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java Fri Jun 13 16:17:26 2014 -0700 +++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java Fri Jun 13 16:24:59 2014 -0700 @@ -225,7 +225,9 @@ public void connect() { screen52 = new Screen5250(); handler = new tnvt(screen52, true, false, bridge, manager); - handler.setSSLType("TLS"); + String encryption = host.getEncryption5250(); + if ((encryption == null) || (encryption.length() == 0)) encryption = "NONE"; + handler.setSSLType(encryption); screen52.setVT(handler); screen52.setBuffer(buffer); connected = handler.connect(host.getHostname(), host.getPort());