summaryrefslogtreecommitdiffstats
path: root/java/src/com/tigervnc/vncviewer/RfbProto.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/tigervnc/vncviewer/RfbProto.java')
-rw-r--r--java/src/com/tigervnc/vncviewer/RfbProto.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/java/src/com/tigervnc/vncviewer/RfbProto.java b/java/src/com/tigervnc/vncviewer/RfbProto.java
index eb8ca938..e88d8e79 100644
--- a/java/src/com/tigervnc/vncviewer/RfbProto.java
+++ b/java/src/com/tigervnc/vncviewer/RfbProto.java
@@ -434,6 +434,9 @@ class RfbProto {
case SecTypeTLSNone:
case SecTypeTLSVnc:
case SecTypeTLSPlain:
+ case SecTypeX509None:
+ case SecTypeX509Vnc:
+ case SecTypeX509Plain:
writeInt(secTypes[i]);
return secTypes[i];
}
@@ -484,6 +487,11 @@ class RfbProto {
tunnel.setup (this);
}
+ void authenticateX509() throws Exception {
+ X509Tunnel tunnel = new X509Tunnel(sock);
+ tunnel.setup (this);
+ }
+
void authenticatePlain(String User, String Password) throws Exception {
byte[] user=User.getBytes();
byte[] password=Password.getBytes();