changeset 1949:324662e5e611

Netx: prompt the user fewer times for https certificate issues
author Omair Majid <omajid@redhat.com>
date Wed, 29 Jul 2009 10:48:43 -0400
parents e808c63fb3a3
children 03e2ef9b5c6b
files ChangeLog netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Jul 23 11:39:18 2009 -0400
+++ b/ChangeLog	Wed Jul 29 10:48:43 2009 -0400
@@ -1,3 +1,8 @@
+2009-07-29  Omair Majid  <omajid@redhat.com>
+
+	* netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java
+	(checkServerTrusted): Synchronize the function.
+
 2009-07-23  Deepak Bhole  <dbhole@redhat.com>
 
 	* plugin/icedteanp/IcedTeaJavaRequestProcessor.c: Added support for
--- a/netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java	Thu Jul 23 11:39:18 2009 -0400
+++ b/netx/net/sourceforge/jnlp/security/VariableX509TrustManager.java	Wed Jul 29 10:48:43 2009 -0400
@@ -143,7 +143,7 @@
      * @param authType The auth type algorithm
      * @param checkOnly Whether to "check only" i.e. no user prompt, or to prompt for permission 
      */
-    public void checkServerTrusted(X509Certificate[] chain, String authType, boolean checkOnly) throws CertificateException {
+    public synchronized void checkServerTrusted(X509Certificate[] chain, String authType, boolean checkOnly) throws CertificateException {
         try {
             checkAllManagers(chain, authType);
         } catch (CertificateException ce) {