changeset 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 99d5b02ad90c
children 294435151b0c
files src/com/five_ten_sg/connectbot/transport/TN5250.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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());