Mercurial > 510Connectbot
comparison 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 |
comparison
equal
deleted
inserted
replaced
67:99d5b02ad90c | 68:cc7e3588a0f3 |
---|---|
223 */ | 223 */ |
224 @Override | 224 @Override |
225 public void connect() { | 225 public void connect() { |
226 screen52 = new Screen5250(); | 226 screen52 = new Screen5250(); |
227 handler = new tnvt(screen52, true, false, bridge, manager); | 227 handler = new tnvt(screen52, true, false, bridge, manager); |
228 handler.setSSLType("TLS"); | 228 String encryption = host.getEncryption5250(); |
229 if ((encryption == null) || (encryption.length() == 0)) encryption = "NONE"; | |
230 handler.setSSLType(encryption); | |
229 screen52.setVT(handler); | 231 screen52.setVT(handler); |
230 screen52.setBuffer(buffer); | 232 screen52.setBuffer(buffer); |
231 connected = handler.connect(host.getHostname(), host.getPort()); | 233 connected = handler.connect(host.getHostname(), host.getPort()); |
232 if (connected) bridge.onConnected(); | 234 if (connected) bridge.onConnected(); |
233 } | 235 } |