Remove use of deprecated SHA-1 and MD5 algorithms
Resolves: rhbz#1936601
This commit is contained in:
parent
e745867dc9
commit
f80d947113
37
0001-Remove-use-of-deprecated-SHA-1-and-MD5-algorithms.patch
Normal file
37
0001-Remove-use-of-deprecated-SHA-1-and-MD5-algorithms.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From 8f7d5c7c763f66035dda86012d58744547672abe Mon Sep 17 00:00:00 2001
|
||||||
|
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||||
|
Date: Thu, 28 Oct 2021 10:03:13 +0200
|
||||||
|
Subject: [PATCH] Remove use of deprecated SHA-1 and MD5 algorithms
|
||||||
|
|
||||||
|
---
|
||||||
|
.../aether/repository/AuthenticationDigest.java | 11 ++---------
|
||||||
|
1 file changed, 2 insertions(+), 9 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/maven-resolver-api/src/main/java/org/eclipse/aether/repository/AuthenticationDigest.java b/maven-resolver-api/src/main/java/org/eclipse/aether/repository/AuthenticationDigest.java
|
||||||
|
index 27b88c02..6236e7b2 100644
|
||||||
|
--- a/maven-resolver-api/src/main/java/org/eclipse/aether/repository/AuthenticationDigest.java
|
||||||
|
+++ b/maven-resolver-api/src/main/java/org/eclipse/aether/repository/AuthenticationDigest.java
|
||||||
|
@@ -98,18 +98,11 @@ public final class AuthenticationDigest
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
- return MessageDigest.getInstance( "SHA-1" );
|
||||||
|
+ return MessageDigest.getInstance( "SHA-256" );
|
||||||
|
}
|
||||||
|
catch ( NoSuchAlgorithmException e )
|
||||||
|
{
|
||||||
|
- try
|
||||||
|
- {
|
||||||
|
- return MessageDigest.getInstance( "MD5" );
|
||||||
|
- }
|
||||||
|
- catch ( NoSuchAlgorithmException ne )
|
||||||
|
- {
|
||||||
|
- throw new IllegalStateException( ne );
|
||||||
|
- }
|
||||||
|
+ throw new IllegalStateException( e );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
--
|
||||||
|
2.32.0
|
||||||
|
|
@ -3,13 +3,16 @@
|
|||||||
Name: maven-resolver
|
Name: maven-resolver
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 1.6.1
|
Version: 1.6.1
|
||||||
Release: 7%{?dist}
|
Release: 8%{?dist}
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
Summary: Apache Maven Artifact Resolver library
|
Summary: Apache Maven Artifact Resolver library
|
||||||
URL: https://maven.apache.org/resolver/
|
URL: https://maven.apache.org/resolver/
|
||||||
Source0: https://archive.apache.org/dist/maven/resolver/%{name}-%{version}-source-release.zip
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Source0: https://archive.apache.org/dist/maven/resolver/%{name}-%{version}-source-release.zip
|
||||||
|
|
||||||
|
Patch0: 0001-Remove-use-of-deprecated-SHA-1-and-MD5-algorithms.patch
|
||||||
|
|
||||||
BuildRequires: maven-local-openjdk8
|
BuildRequires: maven-local-openjdk8
|
||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
BuildRequires: javapackages-bootstrap
|
BuildRequires: javapackages-bootstrap
|
||||||
@ -64,6 +67,7 @@ artifact transports and artifact resolution.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%pom_remove_plugin -r :bnd-maven-plugin
|
%pom_remove_plugin -r :bnd-maven-plugin
|
||||||
|
|
||||||
@ -113,6 +117,9 @@ done
|
|||||||
%license LICENSE NOTICE
|
%license LICENSE NOTICE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 12 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.6.1-8
|
||||||
|
- Remove use of deprecated SHA-1 and MD5 algorithms
|
||||||
|
|
||||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.6.1-7
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1:1.6.1-7
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
||||||
Related: rhbz#1991688
|
Related: rhbz#1991688
|
||||||
|
Loading…
Reference in New Issue
Block a user