Blame SOURCES/pr2899.patch

045ef6
# HG changeset patch
045ef6
# User andrew
045ef6
# Date 1459313680 -3600
045ef6
#      Wed Mar 30 05:54:40 2016 +0100
045ef6
# Node ID 9dc0eca5fa8926e6a952fa4f1931e78aa1f52443
045ef6
# Parent  8957aff589013e671f02d38023d5ff245ef27e87
045ef6
PR2899: Don't use WithSeed versions of NSS functions as they don't fully process the seed
045ef6
Contributed-by: Alex Kashchenko <akashche@redhat.com>
045ef6
Updated 2017/07/04 to accomodate 8175110 by Andrew Hughes <gnu.andrew@redhat.com>
045ef6
045ef6
diff -r e5fdbb82bd49 src/share/native/sun/security/ec/ecc_impl.h
045ef6
--- openjdk/jdk/src/share/native/sun/security/ec/ecc_impl.h
045ef6
+++ openjdk/jdk/src/share/native/sun/security/ec/ecc_impl.h
045ef6
@@ -267,8 +267,8 @@
045ef6
 
045ef6
 #ifdef SYSTEM_NSS
045ef6
 #define EC_DecodeParams(a,b,c) EC_DecodeParams(a,b)
045ef6
-#define EC_NewKey(a,b,c,d,e) EC_NewKeyFromSeed(a,b,c,d)
045ef6
-#define ECDSA_SignDigest(a,b,c,d,e,f,g) ECDSA_SignDigestWithSeed(a,b,c,d,e)
045ef6
+#define EC_NewKey(a,b,c,d,e) EC_NewKey(a,b)
045ef6
+#define ECDSA_SignDigest(a,b,c,d,e,f,g) ECDSA_SignDigest(a,b,c)
045ef6
 #define ECDSA_VerifyDigest(a,b,c,d) ECDSA_VerifyDigest(a,b,c)
045ef6
 #define ECDH_Derive(a,b,c,d,e,f) ECDH_Derive(a,b,c,d,e)
045ef6
 #else