/hg/release/icedtea7-2.4: Fix broken bootstrap.

andrew at icedtea.classpath.org andrew at icedtea.classpath.org
Wed Jan 15 21:20:32 PST 2014


changeset c5db461b91c7 in /hg/release/icedtea7-2.4
details: http://icedtea.classpath.org/hg/release/icedtea7-2.4?cmd=changeset;node=c5db461b91c7
author: Andrew John Hughes <gnu_andrew at member.fsf.org>
date: Thu Jan 16 05:20:16 2014 +0000

	Fix broken bootstrap.

	2014-01-15  Andrew John Hughes  <gnu.andrew at redhat.com>

		* patches/boot/ecj-multicatch.patch:
		Add new cases in RSAClientKeyExchange
		and Handshaker.


diffstat:

 ChangeLog                         |   6 ++++
 patches/boot/ecj-multicatch.patch |  49 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+), 0 deletions(-)

diffs (69 lines):

diff -r b02e2543e62a -r c5db461b91c7 ChangeLog
--- a/ChangeLog	Wed Jan 15 22:48:01 2014 +0000
+++ b/ChangeLog	Thu Jan 16 05:20:16 2014 +0000
@@ -1,3 +1,9 @@
+2014-01-15  Andrew John Hughes  <gnu.andrew at redhat.com>
+
+	* patches/boot/ecj-multicatch.patch:
+	Add new cases in RSAClientKeyExchange
+	and Handshaker.
+
 2014-01-14  Andrew John Hughes  <gnu.andrew at redhat.com>
 
 	* NEWS: Add missing entry.
diff -r b02e2543e62a -r c5db461b91c7 patches/boot/ecj-multicatch.patch
--- a/patches/boot/ecj-multicatch.patch	Wed Jan 15 22:48:01 2014 +0000
+++ b/patches/boot/ecj-multicatch.patch	Thu Jan 16 05:20:16 2014 +0000
@@ -466,3 +466,52 @@
                  ei = new EncodingInfo(null,null);
              }
          }
+diff -Nru openjdk-boot.orig/jdk/src/share/classes/sun/security/ssl/Handshaker.java openjdk-boot/jdk/src/share/classes/sun/security/ssl/Handshaker.java
+--- openjdk-boot.orig/jdk/src/share/classes/sun/security/ssl/Handshaker.java	2014-01-16 00:34:01.264963408 +0000
++++ openjdk-boot/jdk/src/share/classes/sun/security/ssl/Handshaker.java	2014-01-16 00:35:24.562264096 +0000
+@@ -1051,8 +1051,7 @@
+             KeyGenerator kg = JsseJce.getKeyGenerator(masterAlg);
+             kg.init(spec);
+             return kg.generateKey();
+-        } catch (InvalidAlgorithmParameterException |
+-                NoSuchAlgorithmException iae) {
++        } catch (InvalidAlgorithmParameterException iae) {
+             // unlikely to happen, otherwise, must be a provider exception
+             //
+             // For RSA premaster secrets, do not signal a protocol error
+@@ -1060,6 +1059,12 @@
+             if (debug != null && Debug.isOn("handshake")) {
+                 System.out.println("RSA master secret generation error:");
+                 iae.printStackTrace(System.out);
++            }
++            throw new ProviderException(iae);
++	} catch (NoSuchAlgorithmException iae) {
++            if (debug != null && Debug.isOn("handshake")) {
++                System.out.println("RSA master secret generation error:");
++                iae.printStackTrace(System.out);
+             }
+             throw new ProviderException(iae);
+         }
+diff -Nru openjdk-boot.orig/jdk/src/share/classes/sun/security/ssl/RSAClientKeyExchange.java openjdk-boot/jdk/src/share/classes/sun/security/ssl/RSAClientKeyExchange.java
+--- openjdk-boot.orig/jdk/src/share/classes/sun/security/ssl/RSAClientKeyExchange.java	2014-01-16 00:34:14.005162368 +0000
++++ openjdk-boot/jdk/src/share/classes/sun/security/ssl/RSAClientKeyExchange.java	2014-01-16 00:36:09.446964834 +0000
+@@ -271,12 +271,17 @@
+             kg.init(new TlsRsaPremasterSecretParameterSpec(
+                     version.major, version.minor, encodedSecret), generator);
+             return kg.generateKey();
+-        } catch (InvalidAlgorithmParameterException |
+-                NoSuchAlgorithmException iae) {
++        } catch (InvalidAlgorithmParameterException iae) {
+             // unlikely to happen, otherwise, must be a provider exception
+             if (debug != null && Debug.isOn("handshake")) {
+                 System.out.println("RSA premaster secret generation error:");
+                 iae.printStackTrace(System.out);
++            }
++            throw new RuntimeException("Could not generate dummy secret", iae);
++	} catch (NoSuchAlgorithmException iae) {
++            if (debug != null && Debug.isOn("handshake")) {
++                System.out.println("RSA premaster secret generation error:");
++                iae.printStackTrace(System.out);
+             }
+             throw new RuntimeException("Could not generate dummy secret", iae);
+         }


More information about the distro-pkg-dev mailing list