Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
b6ee5f96
Commit
b6ee5f96
authored
Jun 19, 2009
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add proxyHost and proxyPort java applet params.
parent
ac33a29f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
121 additions
and
28 deletions
+121
-28
README
classes/ssl/README
+16
-1
SignedUltraViewerSSL.jar
classes/ssl/SignedUltraViewerSSL.jar
+0
-0
SignedVncViewer.jar
classes/ssl/SignedVncViewer.jar
+0
-0
UltraViewerSSL.jar
classes/ssl/UltraViewerSSL.jar
+0
-0
VncViewer.jar
classes/ssl/VncViewer.jar
+0
-0
tightvnc-1.3dev7_javasrc-vncviewer-ssl.patch
classes/ssl/tightvnc-1.3dev7_javasrc-vncviewer-ssl.patch
+48
-9
ultravnc-102-JavaViewer-ssl-etc.patch
classes/ssl/ultravnc-102-JavaViewer-ssl-etc.patch
+56
-17
README
x11vnc/README
+1
-1
No files found.
classes/ssl/README
View file @
b6ee5f96
...
...
@@ -184,9 +184,24 @@ Both TightVNC and UltraVNC Java viewers:
safely put oneTimeKey=... on the URL. The Vncviewer
authenticates the VNC server with this key.
proxyHost
string, default: none
Do not try to guess the proxy's hostname, use the value in
proxyHost. Does not imply forceProxy (below.)
proxyPort
string, default: none
Do not try to guess the proxy's port number, use the value in
proxyPort. Does not imply forceProxy (below.)
forceProxy
yes/no, default: no
Assume there is a proxy.
Assume there is a proxy and force its use.
If a string other than "yes" or "no" is given, it implies "yes"
and uses the string for proxyHost and proxyPort (see above).
In this case the string must be of the form "hostname+port".
Note that it is "+" and not ":" before the port number.
ignoreProxy
yes/no, default: no
...
...
classes/ssl/SignedUltraViewerSSL.jar
View file @
b6ee5f96
No preview for this file type
classes/ssl/SignedVncViewer.jar
View file @
b6ee5f96
No preview for this file type
classes/ssl/UltraViewerSSL.jar
View file @
b6ee5f96
No preview for this file type
classes/ssl/VncViewer.jar
View file @
b6ee5f96
No preview for this file type
classes/ssl/tightvnc-1.3dev7_javasrc-vncviewer-ssl.patch
View file @
b6ee5f96
...
...
@@ -73,8 +73,8 @@ diff -x VncCanvas.java -Naur vnc_javasrc.orig/RfbProto.java vnc_javasrc/RfbProto
serverMajor = (b[4] - '0') * 100 + (b[5] - '0') * 10 + (b[6] - '0');
diff -x VncCanvas.java -Naur vnc_javasrc.orig/SSLSocketToMe.java vnc_javasrc/SSLSocketToMe.java
--- vnc_javasrc.orig/SSLSocketToMe.java 1969-12-31 19:00:00.000000000 -0500
+++ vnc_javasrc/SSLSocketToMe.java 2009-06-1
8 09:47:22
.000000000 -0400
@@ -0,0 +1,17
17
@@
+++ vnc_javasrc/SSLSocketToMe.java 2009-06-1
9 10:23:50
.000000000 -0400
@@ -0,0 +1,17
26
@@
+/*
+ * SSLSocketToMe.java: add SSL encryption to Java VNC Viewer.
+ *
...
...
@@ -924,7 +924,16 @@ diff -x VncCanvas.java -Naur vnc_javasrc.orig/SSLSocketToMe.java vnc_javasrc/SSL
+ } catch (Exception e) {
+ dbg("props failed: " + e.getMessage());
+ }
+ if (props != null) {
+ if (viewer.proxyHost != null) {
+ dbg("Using supplied proxy " + viewer.proxyHost + " " + viewer.proxyPort + " applet parameters.");
+ proxyHost = viewer.proxyHost;
+ if (viewer.proxyPort != null) {
+ proxyPort = gint(viewer.proxyPort);
+ } else {
+ proxyPort = 8080;
+ }
+
+ } else if (props != null) {
+ dbg("\n---------------\nAll props:");
+ props.list(System.out);
+ dbg("\n---------------\n\n");
...
...
@@ -1794,7 +1803,7 @@ diff -x VncCanvas.java -Naur vnc_javasrc.orig/SSLSocketToMe.java vnc_javasrc/SSL
+}
diff -x VncCanvas.java -Naur vnc_javasrc.orig/VncViewer.java vnc_javasrc/VncViewer.java
--- vnc_javasrc.orig/VncViewer.java 2004-03-04 08:34:25.000000000 -0500
+++ vnc_javasrc/VncViewer.java 200
7-09-03 23:22:1
3.000000000 -0400
+++ vnc_javasrc/VncViewer.java 200
9-06-19 10:32:0
3.000000000 -0400
@@ -80,7 +80,7 @@
// Variables read from parameter values.
String socketFactory;
...
...
@@ -1804,7 +1813,7 @@ diff -x VncCanvas.java -Naur vnc_javasrc.orig/VncViewer.java vnc_javasrc/VncView
boolean showControls;
boolean offerRelogin;
boolean showOfflineDesktop;
@@ -88,6 +88,1
7
@@
@@ -88,6 +88,1
9
@@
int deferCursorUpdates;
int deferUpdateRequests;
...
...
@@ -1814,6 +1823,8 @@ diff -x VncCanvas.java -Naur vnc_javasrc.orig/VncViewer.java vnc_javasrc/VncView
+ String urlPrefix;
+ String httpsPort;
+ String oneTimeKey;
+ String proxyHost;
+ String proxyPort;
+ boolean forceProxy;
+ boolean ignoreProxy;
+ boolean trustAllVncCerts;
...
...
@@ -1822,7 +1833,7 @@ diff -x VncCanvas.java -Naur vnc_javasrc.orig/VncViewer.java vnc_javasrc/VncView
// Reference to this applet for inter-applet communication.
public static java.applet.Applet refApplet;
@@ -591,8 +60
2
,25 @@
@@ -591,8 +60
4
,25 @@
}
}
...
...
@@ -1850,7 +1861,7 @@ diff -x VncCanvas.java -Naur vnc_javasrc.orig/VncViewer.java vnc_javasrc/VncView
if (inAnApplet) {
str = readParameter("Open New Window", false);
@@ -626,6 +65
4,68
@@
@@ -626,6 +65
6,96
@@
// SocketFactory.
socketFactory = readParameter("SocketFactory", false);
...
...
@@ -1897,15 +1908,43 @@ diff -x VncCanvas.java -Naur vnc_javasrc.orig/VncViewer.java vnc_javasrc/VncView
+ }
+
+ forceProxy = false;
+ proxyHost = null;
+ proxyPort = null;
+ str = readParameter("forceProxy", false);
+ if (str != null && str.equalsIgnoreCase("Yes")) {
+ forceProxy = true;
+ if (str != null) {
+ if (str.equalsIgnoreCase("Yes")) {
+ forceProxy = true;
+ } else if (str.equalsIgnoreCase("No")) {
+ forceProxy = false;
+ } else {
+ forceProxy = true;
+ String[] pieces = str.split(" ");
+ proxyHost = new String(pieces[0]);
+ if (pieces.length >= 2) {
+ proxyPort = new String(pieces[1]);
+ } else {
+ proxyPort = new String("8080");
+ }
+ }
+ }
+ str = readParameter("proxyHost", false);
+ if (str != null) {
+ proxyHost = new String(str);
+ }
+ str = readParameter("proxyPort", false);
+ if (str != null) {
+ proxyPort = new String(str);
+ }
+ if (proxyHost != null && proxyPort == null) {
+ proxyPort = new String("8080");
+ }
+
+ ignoreProxy = false;
+ str = readParameter("ignoreProxy", false);
+ if (str != null && str.equalsIgnoreCase("Yes")) {
+ ignoreProxy = true;
+ }
+
+ trustAllVncCerts = false;
+ str = readParameter("trustAllVncCerts", false);
+ if (str != null && str.equalsIgnoreCase("Yes")) {
...
...
classes/ssl/ultravnc-102-JavaViewer-ssl-etc.patch
View file @
b6ee5f96
...
...
@@ -2644,8 +2644,8 @@ diff -Naur JavaViewer.orig/RfbProto.java JavaViewer/RfbProto.java
// }
diff -Naur JavaViewer.orig/SSLSocketToMe.java JavaViewer/SSLSocketToMe.java
--- JavaViewer.orig/SSLSocketToMe.java 1969-12-31 19:00:00.000000000 -0500
+++ JavaViewer/SSLSocketToMe.java 2009-06-1
8 09:47:22
.000000000 -0400
@@ -0,0 +1,17
17
@@
+++ JavaViewer/SSLSocketToMe.java 2009-06-1
9 10:23:50
.000000000 -0400
@@ -0,0 +1,17
26
@@
+/*
+ * SSLSocketToMe.java: add SSL encryption to Java VNC Viewer.
+ *
...
...
@@ -3495,7 +3495,16 @@ diff -Naur JavaViewer.orig/SSLSocketToMe.java JavaViewer/SSLSocketToMe.java
+ } catch (Exception e) {
+ dbg("props failed: " + e.getMessage());
+ }
+ if (props != null) {
+ if (viewer.proxyHost != null) {
+ dbg("Using supplied proxy " + viewer.proxyHost + " " + viewer.proxyPort + " applet parameters.");
+ proxyHost = viewer.proxyHost;
+ if (viewer.proxyPort != null) {
+ proxyPort = gint(viewer.proxyPort);
+ } else {
+ proxyPort = 8080;
+ }
+
+ } else if (props != null) {
+ dbg("\n---------------\nAll props:");
+ props.list(System.out);
+ dbg("\n---------------\n\n");
...
...
@@ -4488,7 +4497,7 @@ diff -Naur JavaViewer.orig/VncCanvas.java JavaViewer/VncCanvas.java
result = 0; // Transparent pixel
diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
--- JavaViewer.orig/VncViewer.java 2006-05-24 15:14:40.000000000 -0400
+++ JavaViewer/VncViewer.java 2009-0
1-11 12:28:55.000000000 -05
00
+++ JavaViewer/VncViewer.java 2009-0
6-19 10:31:23.000000000 -04
00
@@ -80,11 +80,11 @@
GridBagLayout gridbag;
ButtonPanel buttonPanel;
...
...
@@ -4512,7 +4521,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
String passwordParam;
String encPasswordParam;
boolean showControls;
@@ -115,28 +115,
68
@@
@@ -115,28 +115,
70
@@
int i;
// mslogon support 2 end
...
...
@@ -4524,6 +4533,8 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
+String httpsPort;
+String oneTimeKey;
+String ftpDropDown;
+String proxyHost;
+String proxyPort;
+boolean forceProxy;
+boolean ignoreProxy;
+boolean trustAllVncCerts;
...
...
@@ -4587,7 +4598,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
// authenticator = new AuthPanel(false); // mslogon support : go to connectAndAuthenticate()
if (RecordingFrame.checkSecurity())
rec = new RecordingFrame(this);
@@ -147,10 +18
7
,11 @@
@@ -147,10 +18
9
,11 @@
cursorUpdatesDef = null;
eightBitColorsDef = null;
...
...
@@ -4601,7 +4612,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
rfbThread = new Thread(this);
rfbThread.start();
}
@@ -186,6 +22
7
,30 @@
@@ -186,6 +22
9
,30 @@
gbc.weightx = 1.0;
gbc.weighty = 1.0;
...
...
@@ -4632,7 +4643,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
// Add ScrollPanel to applet mode
// Create a panel which itself is resizeable and can hold
@@ -286,6 +35
1
,24 @@
@@ -286,6 +35
3
,24 @@
void connectAndAuthenticate() throws Exception {
...
...
@@ -4657,7 +4668,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
// If "ENCPASSWORD" parameter is set, decrypt the password into
// the passwordParam string.
@@ -336,7 +4
19
,22 @@
@@ -336,7 +4
21
,22 @@
//
...
...
@@ -4681,7 +4692,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
authenticator = new AuthPanel(mslogon);
@@ -390,6 +4
88
,10 @@
@@ -390,6 +4
90
,10 @@
break;
//mslogon support end
...
...
@@ -4692,7 +4703,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
// Retry on authentication failure.
authenticator.retry();
}
@@ -405,9 +50
7
,11 @@
@@ -405,9 +50
9
,11 @@
void prologueDetectAuthProtocol() throws Exception {
...
...
@@ -4706,7 +4717,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
System.out.println("RFB server supports protocol version " +
rfb.serverMajor + "." + rfb.serverMinor);
@@ -431,16 +53
5
,36 @@
@@ -431,16 +53
7
,36 @@
boolean tryAuthenticate(String us, String pw) throws Exception {
...
...
@@ -4749,7 +4760,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
switch (authScheme) {
@@ -629,6 +75
3
,10 @@
@@ -629,6 +75
5
,10 @@
void doProtocolInitialisation() throws IOException {
...
...
@@ -4760,7 +4771,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
rfb.writeClientInit();
rfb.readServerInit();
@@ -775,8 +90
3
,25 @@
@@ -775,8 +90
5
,25 @@
}
}
...
...
@@ -4788,7 +4799,7 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
if (inAnApplet) {
str = readParameter("Open New Window", false);
@@ -804,6 +9
49,105
@@
@@ -804,6 +9
51,133
@@
deferScreenUpdates = readIntParameter("Defer screen updates", 20);
deferCursorUpdates = readIntParameter("Defer cursor updates", 10);
deferUpdateRequests = readIntParameter("Defer update requests", 50);
...
...
@@ -4846,15 +4857,43 @@ diff -Naur JavaViewer.orig/VncViewer.java JavaViewer/VncViewer.java
+ }
+
+ forceProxy = false;
+ proxyHost = null;
+ proxyPort = null;
+ str = readParameter("forceProxy", false);
+ if (str != null && str.equalsIgnoreCase("Yes")) {
+ forceProxy = true;
+ if (str != null) {
+ if (str.equalsIgnoreCase("Yes")) {
+ forceProxy = true;
+ } else if (str.equalsIgnoreCase("No")) {
+ forceProxy = false;
+ } else {
+ forceProxy = true;
+ String[] pieces = str.split(" ");
+ proxyHost = new String(pieces[0]);
+ if (pieces.length >= 2) {
+ proxyPort = new String(pieces[1]);
+ } else {
+ proxyPort = new String("8080");
+ }
+ }
+ }
+ str = readParameter("proxyHost", false);
+ if (str != null) {
+ proxyHost = new String(str);
+ }
+ str = readParameter("proxyPort", false);
+ if (str != null) {
+ proxyPort = new String(str);
+ }
+ if (proxyHost != null && proxyPort == null) {
+ proxyPort = new String("8080");
+ }
+
+ ignoreProxy = false;
+ str = readParameter("ignoreProxy", false);
+ if (str != null && str.equalsIgnoreCase("Yes")) {
+ ignoreProxy = true;
+ }
+
+ trustAllVncCerts = false;
+ str = readParameter("trustAllVncCerts", false);
+ if (str != null && str.equalsIgnoreCase("Yes")) {
...
...
x11vnc/README
View file @
b6ee5f96
...
...
@@ -2,7 +2,7 @@
Copyright
(
C
)
2002
-
2009
Karl
J
.
Runge
<
runge
@
karlrunge
.
com
>
All
rights
reserved
.
x11vnc
README
file
Date
:
Thu
Jun
18
21
:
59
:
34
EDT
2009
x11vnc
README
file
Date
:
Fri
Jun
19
10
:
41
:
53
EDT
2009
The
following
information
is
taken
from
these
URLs
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment