From 3a59235184df48aef6d9c3885493bc7778e2444d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 19 2015 16:12:13 +0000 Subject: import jss-4.2.6-37.el7 --- diff --git a/SOURCES/jss-WindowsCompileFix.patch b/SOURCES/jss-WindowsCompileFix.patch new file mode 100644 index 0000000..20e2ea3 --- /dev/null +++ b/SOURCES/jss-WindowsCompileFix.patch @@ -0,0 +1,32 @@ +diff -up jss-4.2.6/mozilla/security/jss/org/mozilla/jss/ssl/SSLSocket.c.cfu jss-4.2.6/mozilla/security/jss/org/mozilla/jss/ssl/SSLSocket.c +--- jss-4.2.6/mozilla/security/jss/org/mozilla/jss/ssl/SSLSocket.c.cfu 2015-04-23 13:25:45.104249135 -0700 ++++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/ssl/SSLSocket.c 2015-04-23 13:39:29.958813779 -0700 +@@ -49,10 +49,12 @@ + + #ifdef WINNT + #include ++#define AF_INET6 23 + #endif + + #ifdef WIN32 + #include ++#define AF_INET6 23 + #endif + + +@@ -66,6 +68,7 @@ Java_org_mozilla_jss_ssl_SSLSocket_setSS + { + SECStatus status; + SSLVersionRange vrange; ++ SSLVersionRange supported_range; + + if (ssl_variant <0 || ssl_variant >= JSSL_enums_size|| + min <0 || min >= JSSL_enums_size || +@@ -80,7 +83,6 @@ Java_org_mozilla_jss_ssl_SSLSocket_setSS + vrange.max = JSSL_enums[max]; + + /* get supported range */ +- SSLVersionRange supported_range; + status = SSL_VersionRangeGetSupported(JSSL_enums[ssl_variant], + &supported_range); + if( status != SECSuccess ) { diff --git a/SOURCES/jss-WindowsLoadLibrary.patch b/SOURCES/jss-WindowsLoadLibrary.patch new file mode 100644 index 0000000..23b8913 --- /dev/null +++ b/SOURCES/jss-WindowsLoadLibrary.patch @@ -0,0 +1,30 @@ +diff -up jss-4.2.6/mozilla/security/jss/org/mozilla/jss/CryptoManager.java.cfu jss-4.2.6/mozilla/security/jss/org/mozilla/jss/CryptoManager.java +--- jss-4.2.6/mozilla/security/jss/org/mozilla/jss/CryptoManager.java.cfu 2015-07-08 12:02:13.192000000 +0200 ++++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/CryptoManager.java 2015-07-08 12:04:56.213000000 +0200 +@@ -1404,17 +1404,23 @@ public final class CryptoManager impleme + synchronized static void loadNativeLibraries() + { + if( ! mNativeLibrariesLoaded ) { +- try { ++ try { // 64 bit rhel/fedora + System.load( "/usr/lib64/jss/libjss4.so" ); + Debug.trace(Debug.VERBOSE, "jss library loaded"); + mNativeLibrariesLoaded = true; + } catch( UnsatisfiedLinkError e ) { +- try { ++ try { // 32 bit rhel/fedora + System.load( "/usr/lib/jss/libjss4.so" ); + Debug.trace(Debug.VERBOSE, "jss library loaded"); + mNativeLibrariesLoaded = true; + } catch( UnsatisfiedLinkError f ) { +- Debug.trace(Debug.VERBOSE, "jss library load failed"); ++ try {// possibly other platforms ++ System.loadLibrary( "jss4" ); ++ Debug.trace(Debug.VERBOSE, "jss library loaded"); ++ mNativeLibrariesLoaded = true; ++ } catch( UnsatisfiedLinkError g ) { ++ Debug.trace(Debug.VERBOSE, "jss library load failed"); ++ } + } + } + } diff --git a/SPECS/jss.spec b/SPECS/jss.spec index 3948e6a..3fa15a9 100644 --- a/SPECS/jss.spec +++ b/SPECS/jss.spec @@ -1,6 +1,6 @@ Name: jss Version: 4.2.6 -Release: 35%{?dist} +Release: 37%{?dist} Summary: Java Security Services (JSS) Group: System Environment/Libraries @@ -48,6 +48,8 @@ Patch23: jss-fixed-build-issue-on-F17-or-newer.patch Patch24: jss-SHA-OID-fix.patch Patch25: jss-RC4-strengh-verify.patch Patch26: jss-support-TLS1_1-TLS1_2.patch +Patch27: jss-WindowsCompileFix.patch +Patch28: jss-WindowsLoadLibrary.patch %description Java Security Services (JSS) is a java native interface which provides a bridge @@ -90,6 +92,8 @@ This package contains the API documentation for JSS. %patch24 -p1 %patch25 -p1 %patch26 -p1 +%patch27 -p1 +%patch28 -p1 %build [ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java @@ -194,6 +198,12 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Jul 8 2015 Christina Fu - 4.2.6-37 +- Bugzilla Bug #1238450 - UnsatisfiedLinkError on Windows + +* Fri Apr 24 2015 Christina Fu - 4.2.6-36 +- make it compile on Windows platforms (cfu for nhosoi) + * Mon Sep 29 2014 Christina Fu - 4.2.6-35 - Bugzilla Bug #1040640 - Incorrect OIDs for SHA2 algorithms (cfu for jnimeh@gmail.com)