view fsg.sh.in @ 2970:fa0e548cfdba icedtea-3.17.0pre02

PR3795: ECDSAUtils for XML digital signatures should support the same curve set as the rest of the JDK 2020-10-19 Andrew John Hughes <gnu_andrew@member.fsf.org> PR3795: ECDSAUtils for XML digital signatures should support the same curve set as the rest of the JDK * NEWS: Updated. * fsg.sh.in: Use a single value for PATCH_FILE, which includes the value of @CURVES@. * patches/pr3795-3curve.patch: Renamed from pr3667.patch and added removal of curves from ECDSAUtils.java * patches/pr3795-4curve.patch: Renamed from pr3756.patch and added removal of curves from ECDSAUtils.java
author Andrew John Hughes <gnu_andrew@member.fsf.org>
date Mon, 26 Oct 2020 03:15:12 +0000
parents cf679deb93d4
children d97ed9be7d62
line wrap: on
line source

#!/bin/sh

echo "Further liberating OpenJDK..."

# PRx denotes bug x in the IcedTea bug database (https://icedtea.classpath.org/bugzilla/show_bug.cgi?id=x)
# Sx denotes bug x in the Sun/Oracle bug database (https://bugs.openjdk.java.net/browse/JDK-X)

echo "Removing support for proprietary SNMP plug"
rm -rvf openjdk/jdk/src/share/classes/sun/management/snmp
rm -rvf openjdk/jdk/src/share/classes/com/sun/jmx/snmp
rm -rvf openjdk/jdk/test/com/sun/jmx/snmp

if test "x@CURVES@" != "xall"; then
  echo "Reducing number of ECC curves to @CURVES@..."
  rm -vf openjdk/jdk/src/share/native/sun/security/ec/impl/ec2.h
  rm -vf openjdk/jdk/src/share/native/sun/security/ec/impl/ec2_163.c
  rm -vf openjdk/jdk/src/share/native/sun/security/ec/impl/ec2_193.c
  rm -vf openjdk/jdk/src/share/native/sun/security/ec/impl/ec2_233.c
  rm -vf openjdk/jdk/src/share/native/sun/security/ec/impl/ec2_aff.c
  rm -vf openjdk/jdk/src/share/native/sun/security/ec/impl/ec2_mont.c
  rm -vf openjdk/jdk/src/share/native/sun/security/ec/impl/ecp_192.c
  rm -vf openjdk/jdk/src/share/native/sun/security/ec/impl/ecp_224.c
  PATCH_FILE="@abs_top_srcdir@/patches/pr3795-@CURVES@curve.patch"
  echo "Applying ${PATCH_FILE}..."
  patch -Np0 < ${PATCH_FILE}
fi