diff options
author | Brian P. Hinz <bphinz@users.sf.net> | 2016-12-10 19:10:37 -0500 |
---|---|---|
committer | Brian P. Hinz <bphinz@users.sf.net> | 2016-12-10 19:10:37 -0500 |
commit | 7ea19d8f89633cc940227e94238df0e357ebe054 (patch) | |
tree | a28b220d89447d8e3eb57c60a8ab59105a1b8d86 /java | |
parent | 7119f11a84d806179ccf2f5b1e460d75cabdbd97 (diff) | |
download | tigervnc-7ea19d8f89633cc940227e94238df0e357ebe054.tar.gz tigervnc-7ea19d8f89633cc940227e94238df0e357ebe054.zip |
Whitespace cleanup
Diffstat (limited to 'java')
-rw-r--r-- | java/com/tigervnc/network/SSLEngineManager.java | 20 | ||||
-rw-r--r-- | java/com/tigervnc/vncviewer/Tunnel.java | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/java/com/tigervnc/network/SSLEngineManager.java b/java/com/tigervnc/network/SSLEngineManager.java index c0110995..e6abe3e9 100644 --- a/java/com/tigervnc/network/SSLEngineManager.java +++ b/java/com/tigervnc/network/SSLEngineManager.java @@ -74,7 +74,7 @@ public class SSLEngineManager { hs != SSLEngineResult.HandshakeStatus.NOT_HANDSHAKING) { switch (hs) { - + case NEED_UNWRAP: // Receive handshaking data from peer peerNetData.flip(); @@ -92,26 +92,26 @@ public class SSLEngineManager { peerNetData.flip(); peerNetData.compact(); break; - + case OK: // Process incoming handshaking data break; - + case CLOSED: engine.closeInbound(); break; - + } break; - + case NEED_WRAP: // Empty the local network packet buffer. myNetData.clear(); - + // Generate handshaking data res = engine.wrap(myAppData, myNetData); hs = res.getHandshakeStatus(); - + // Check status switch (res.getStatus()) { case OK: @@ -121,15 +121,15 @@ public class SSLEngineManager { os.flush(); myNetData.clear(); break; - + case BUFFER_OVERFLOW: // FIXME: How much larger should the buffer be? break; - + case CLOSED: engine.closeOutbound(); break; - + } break; diff --git a/java/com/tigervnc/vncviewer/Tunnel.java b/java/com/tigervnc/vncviewer/Tunnel.java index f036c1a5..bb98ec7c 100644 --- a/java/com/tigervnc/vncviewer/Tunnel.java +++ b/java/com/tigervnc/vncviewer/Tunnel.java @@ -179,7 +179,7 @@ public class Tunnel { else jsch.addIdentity(privateKey.getAbsolutePath()); } - + String user = getSshUser(); String label = new String("SSH Authentication"); PasswdDialog dlg = |