Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
tigervnc.16717
u_tigervnc-add-autoaccept-parameter.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File u_tigervnc-add-autoaccept-parameter.patch of Package tigervnc.16717
Index: tigervnc-1.6.0/java/com/tigervnc/rfb/CSecurityTLS.java =================================================================== --- tigervnc-1.6.0.orig/java/com/tigervnc/rfb/CSecurityTLS.java +++ tigervnc-1.6.0/java/com/tigervnc/rfb/CSecurityTLS.java @@ -67,6 +67,9 @@ public class CSecurityTLS extends CSecur = new StringParameter("x509crl", "X509 CRL file", "", Configuration.ConfigurationObject.ConfViewer); public static UserMsgBox msg; + public static StringParameter x509autoaccept + = new StringParameter("x509autoaccept", + "X509 Certificate SHA-1 fingerprint", "", Configuration.ConfigurationObject.ConfViewer); private void initGlobal() { @@ -85,6 +88,7 @@ public class CSecurityTLS extends CSecur setDefaults(); cafile = x509ca.getData(); crlfile = x509crl.getData(); + certautoaccept = x509autoaccept.getData(); } public static String getDefaultCA() { @@ -320,6 +324,11 @@ public class CSecurityTLS extends CSecur store_pubkey(dbPath, client.getServerName().toLowerCase(), pk); } catch (java.lang.Exception e) { if (e.getCause() instanceof CertPathBuilderException) { + + if (certautoaccept != null && getThumbprint(cert).equalsIgnoreCase(certautoaccept)) { + return; + } + vlog.debug("Server host not previously known"); vlog.debug(info); String text = @@ -508,7 +517,7 @@ public class CSecurityTLS extends CSecur private SSLEngineManager manager; private boolean anon; - private String cafile, crlfile; + private String cafile, crlfile, certautoaccept; private FdInStream is; private FdOutStream os; Index: tigervnc-1.6.0/java/com/tigervnc/vncviewer/VncViewer.java =================================================================== --- tigervnc-1.6.0.orig/java/com/tigervnc/vncviewer/VncViewer.java +++ tigervnc-1.6.0/java/com/tigervnc/vncviewer/VncViewer.java @@ -353,6 +353,8 @@ public class VncViewer extends javax.swi parent.setFocusTraversalKeysEnabled(false); setLookAndFeel(); setBackground(Color.white); + + SecurityClient.setDefaults(); } private void getTimestamp() { @@ -374,6 +376,7 @@ public class VncViewer extends javax.swi if (embed.getValue() && nViewers == 0) { alwaysShowServerDialog.setParam(false); Configuration.global().readAppletParams(this); + Configuration.viewer().readAppletParams(this); fullScreen.setParam(false); scalingFactor.setParam("100"); String host = getCodeBase().getHost();
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor