64631f994a
* Defects Fixed: - Leading zeroes were sometimes dropped from Ed25519 signatures leading to verification errors in the PGP API. - Default version string for Armored Output is now set correctly in 18on build. - The Elephant cipher would fail on large messages. - CMSSignedData.replaceSigners() would re-encode the digest algorithms block, occassionally dropping ones where NULL had been previously added as an algorithm parameter. The method now attempts to only use the original digest algorithm identifiers. - ERSInputStreamData would fail to generate the correct hash if called a second time with a different hash algorithm. - A downcast in the CrlCache which would cause FTP based CRLs to fail to load has been removed. - ECUtil.getNamedCurveOid() now trims curve names of excess space before look up. - The PhotonBeetle and Xoodyak digests did not reset properly after a doFinal() call. - Malformed AlgorithmIdentifiers in CertIDs could cause caching issues in the OCSP cache. - With Java 21 a provider service class will now be returned with a null class name where previously a null would have been returned for a service. This can cause a NullPointerException to be thrown by the BC provider if a non-existant service is requested. - CMS: OtherKeyAttribute.keyAttr now treated as optional. - CMS: EnvelopedData and AuthEnvelopedData could calculate the wrong versions. - The default version header for PGP armored output did not carry the correct version string. - In some situations the algorithm lookup for creating PGPDigestCalculators would fail due to truncation of the algorithm name. OBS-URL: https://build.opensuse.org/package/show/Java:packages/bouncycastle?expand=0&rev=106
163 lines
8.0 KiB
Diff
163 lines
8.0 KiB
Diff
Index: bc-java-r1rv79/ant/bc+-build.xml
|
|
===================================================================
|
|
--- bc-java-r1rv79.orig/ant/bc+-build.xml
|
|
+++ bc-java-r1rv79/ant/bc+-build.xml
|
|
@@ -280,7 +280,7 @@
|
|
|
|
</target>
|
|
|
|
- <target name="build" depends="initMacros, build-lw, build-libraries, build-test" />
|
|
+ <target name="build" depends="initMacros, build-lw, build-libraries" />
|
|
|
|
<target name="build-lw" depends="initMacros">
|
|
<!--
|
|
@@ -964,148 +964,6 @@
|
|
|
|
</target>
|
|
|
|
- <!--
|
|
- Tests
|
|
- -->
|
|
- <target name="build-test" depends="initMacros">
|
|
- <property name="test.target" value="bctest-${target.name}" />
|
|
-
|
|
- <mkdir dir="${artifacts.jars.dir}" />
|
|
-
|
|
- <property name="test.target.dir" value="${artifacts.dir}/${test.target}" />
|
|
- <property name="test.target.src.dir" value="${test.target.dir}/src" />
|
|
-
|
|
- <mkdir dir="${test.target.dir}" />
|
|
-
|
|
- <copyStandardFiles toDir="${test.target.dir}" />
|
|
-
|
|
- <copy todir="${test.target.src.dir}">
|
|
- <fileset dir="${src.dir}" includes="/org/bouncycastle/test/*.java" />
|
|
- <fileset dir="${src.dir}" includes="**/*AllTests.java" />
|
|
- <fileset dir="${src.dir}" includes="**/math/**/*Test.java" />
|
|
- <fileset dir="${src.dir}" includes="**/crypto/*/*Test.java" />
|
|
- <fileset dir="${src.dir}" includes="**/tsp/*UnitTest.java" />
|
|
- <fileset dir="${src.dir}" includes="**/utiltest/*Test.java" />
|
|
- <fileset dir="${src.dir}" includes="**/util/io/pem/*Test.java" />
|
|
- <fileset dir="${src.dir}" includes="**/keybox/*Test.java" />
|
|
- <fileset dir="${src.dir}" includes="**/test/*.java" />
|
|
- <fileset dir="${src.dir}" includes="**/test/*/*.java" />
|
|
- <fileset dir="${src.dir}" includes="**/*.asc" />
|
|
- <fileset dir="${src.dir}" includes="**/*.pem" />
|
|
- <fileset dir="${src.dir}" includes="**/*.p7m" />
|
|
- <fileset dir="${src.dir}" includes="**/*.eml" />
|
|
- <fileset dir="${src.dir}" includes="**/*.sig" />
|
|
- <fileset dir="${src.dir}" includes="**/*.data" />
|
|
- <fileset dir="${src.dir}" includes="**/*.der" />
|
|
- <fileset dir="${src.dir}" includes="**/*.crt" />
|
|
- <fileset dir="${src.dir}" includes="**/*.key" />
|
|
- <fileset dir="${src.dir}" includes="**/*.cer" />
|
|
- <fileset dir="${src.dir}" includes="**/*.bin" />
|
|
- <fileset dir="${src.dir}" includes="**/*.ers" />
|
|
- <fileset dir="${src.dir}" includes="**/*.oer" />
|
|
- <fileset dir="${src.dir}" includes="**/*.kbx" />
|
|
- <fileset dir="${src.dir}" includes="**/*.crl" />
|
|
- <fileset dir="${src.dir}" includes="**/*.csr" />
|
|
- <fileset dir="${src.dir}" includes="**/*.txt" />
|
|
- <fileset dir="${src.dir}" includes="**/*.rsp" />
|
|
- <fileset dir="${src.dir}" includes="**/*.gpg" />
|
|
- <fileset dir="${src.dir}" includes="**/*.pgp" />
|
|
- <fileset dir="${src.dir}" includes="**/*.pub" />
|
|
- <fileset dir="${src.dir}" includes="**/*.sec" />
|
|
- <fileset dir="${src.dir}" includes="**/*.cvcert" />
|
|
- <fileset dir="${src.dir}" includes="**/*.properties" />
|
|
- <fileset dir="${src.dir}" includes="**/*.message" />
|
|
- </copy>
|
|
-
|
|
- <delete file="${test.target.src.dir}/org/bouncycastle/pqc/crypto/lms/AllTests.java" />
|
|
- <delete file="${test.target.src.dir}/org/bouncycastle/gpg/keybox/AllTests.java" />
|
|
- <delete file="${test.target.src.dir}/org/bouncycastle/x509/CertPathReviewerMessages_de.properties" />
|
|
- <delete file="${test.target.src.dir}/org/bouncycastle/x509/CertPathReviewerMessages.properties" />
|
|
-
|
|
- <compile-test target="${test.target}">
|
|
- <manifestElements>
|
|
- <attribute name="Manifest-Version" value="1.0" />
|
|
- <attribute name="Extension-Name" value="org.bouncycastle.bctest" />
|
|
- <attribute name="Specification-Vendor" value="BouncyCastle.org" />
|
|
- <attribute name="Specification-Version" value="1.1" />
|
|
- <attribute name="Implementation-Vendor-Id" value="org.bouncycastle" />
|
|
- <attribute name="Implementation-Vendor" value="BouncyCastle.org" />
|
|
- <attribute name="Implementation-Version" value="${release.version}.0" />
|
|
- <attribute name="Application-Name" value="Bouncy Castle Test Classes" />
|
|
- <attribute name="Trusted-Library" value="true" />
|
|
- <attribute name="Permissions" value="all-permissions" />
|
|
- <attribute name="Codebase" value="*" />
|
|
- <attribute name="Application-Library-Allowable-Codebase" value="*" />
|
|
- <attribute name="Caller-Allowable-Codebase" value="*" />
|
|
- </manifestElements>
|
|
- </compile-test>
|
|
- </target>
|
|
-
|
|
- <target name="test">
|
|
- <property name="test.target" value="bctest-${target.name}" />
|
|
- <property name="test.target.dir" value="${artifacts.dir}/${test.target}" />
|
|
- <property name="test.target.src.dir" value="${test.target.dir}/src" />
|
|
-
|
|
- <mkdir dir="${basedir}/${build.dir}/${target.prefix}" />
|
|
- <junit fork="yes" dir="${basedir}/${build.dir}/${target.prefix}" failureProperty="test.failed" printsummary="${junit.printsummary}" maxmemory="${junit.maxmemory}">
|
|
- <classpath>
|
|
- <path refid="project.classpath" />
|
|
- <fileset dir="${artifacts.jars.dir}">
|
|
- <include name="**/*.jar" />
|
|
- <exclude name="**/bcprov-jdk*.jar" />
|
|
- <exclude name="**/bcjmail-jdk*.jar" />
|
|
- </fileset>
|
|
- </classpath>
|
|
- <sysproperty key="bc.test.data.home" value="../../core/src/test/data" />
|
|
- <sysproperty key="test.java.version.prefix" value="${env.JAVA_VERSION_PREFIX}" />
|
|
-
|
|
- <formatter type="xml" />
|
|
- <batchtest todir="${artifacts.reports.xml.dir}" unless="testcase">
|
|
- <fileset dir="${test.target.src.dir}">
|
|
- <include name="**/AllTests.java" />
|
|
- <exclude name="${env.JUNIT_EXCLUDE_TESTS}" if="env.JUNIT_EXCLUDE_TESTS" />
|
|
- </fileset>
|
|
- </batchtest>
|
|
- </junit>
|
|
-
|
|
- <junitreport todir="${artifacts.reports.xml.dir}">
|
|
- <fileset dir="${artifacts.reports.xml.dir}">
|
|
- <include name="TEST-*.xml" />
|
|
- </fileset>
|
|
- <report format="frames" todir="${artifacts.reports.html.dir}" />
|
|
- </junitreport>
|
|
-
|
|
- <fail if="test.failed"/>
|
|
- </target>
|
|
-
|
|
- <target name="test-lw">
|
|
- <junit fork="yes" dir="${basedir}/${build.dir}/${target.prefix}" failureProperty="test.failed">
|
|
- <classpath>
|
|
- <fileset dir="${artifacts.jars.dir}">
|
|
- <include name="**/*.jar" />
|
|
- <exclude name="**/bcprov-jdk*.jar" />
|
|
- </fileset>
|
|
- </classpath>
|
|
-
|
|
- <formatter type="xml" />
|
|
- <test name="${testcase}" todir="${artifacts.reports.xml.dir}" if="testcase" />
|
|
- <batchtest todir="${artifacts.reports.xml.dir}" unless="testcase">
|
|
- <fileset dir="${src.dir}">
|
|
- <include name="**/crypto/test/AllTests.java" />
|
|
- <include name="**/asn1/test/AllTests.java" />
|
|
- <include name="**/encoders/test/AllTests.java" />
|
|
- <include name="**/ntru/**/AllTests.java" />
|
|
- </fileset>
|
|
- </batchtest>
|
|
- </junit>
|
|
-
|
|
- <junitreport todir="${artifacts.reports.xml.dir}">
|
|
- <fileset dir="${artifacts.reports.xml.dir}">
|
|
- <include name="TEST-*.xml" />
|
|
- </fileset>
|
|
- <report format="frames" todir="${artifacts.reports.html.dir}" />
|
|
- </junitreport>
|
|
- </target>
|
|
|
|
<target name="javadoc-libraries" depends="javadoc-util, javadoc-pkix, javadoc-mail, javadoc-jmail, javadoc-pg" />
|
|
|