-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perlPackages.NetSNMP: add patch to support newer SHA algorithms
The aged perlPackages.NetSNMP library does not support modern SHA algorithms for authentication. It's possible to enable support for these newer protocols with a patch. The patch is taken from the OpenBSD ports tree: https://github.com/openbsd/ports/blob/master/net/p5-Net-SNMP/patches/patch-lib_Net_SNMP_Security_USM_pm It enables support for SHA 224, 256, 384, and 512.
- Loading branch information
1 parent
fe7f792
commit a63d554
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
65 changes: 65 additions & 0 deletions
65
pkgs/development/perl-modules/net-snmp-fix-dependencies.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
diff --git a/Build.PL b/Build.PL | ||
index 71d216e..7667ac0 100644 | ||
--- a/Build.PL | ||
+++ b/Build.PL | ||
@@ -37,10 +37,10 @@ Module::Build->new( | ||
recommends => { | ||
Crypt::DES => '2.03', # SNMPv3 | ||
Digest::MD5 => '2.11', # SNMPv3 | ||
- Digest::SHA1 => '1.02', # SNMPv3 | ||
- Digest::HMAC => '1.00', # SNMPv3 | ||
- Crypt::Rijndael => '1.02', # SNMPv3 - AES Cipher Algorithm | ||
- Socket6 => '0.23', # UDP/IPv6 or TCP/IPv6 Transport Domain | ||
+ Digest::SHA => 0, # SNMPv3 | ||
+ Digest::HMAC_MD5 => '1.01', # SNMPv3 | ||
+ Crypt::Rijndael => '1.02', # SNMPv3 - AES Cipher Algorithm | ||
+ Socket6 => '0.23', # UDP/IPv6 or TCP/IPv6 Transport Domain | ||
}, | ||
meta_merge => { | ||
resources => { | ||
diff --git a/META.yml b/META.yml | ||
index f260431..aaf6d4e 100644 | ||
--- a/META.yml | ||
+++ b/META.yml | ||
@@ -61,9 +61,9 @@ provides: | ||
recommends: | ||
Crypt::DES: 2.03 | ||
Crypt::Rijndael: 1.02 | ||
- Digest::HMAC: 1.00 | ||
+ Digest::HMAC_MD5: 1.01 | ||
Digest::MD5: 2.11 | ||
- Digest::SHA1: 1.02 | ||
+ Digest::SHA: 0 | ||
Socket6: 0.23 | ||
requires: | ||
Carp: 0 | ||
diff --git a/Makefile.PL b/Makefile.PL | ||
index 4678c32..8322589 100644 | ||
--- a/Makefile.PL | ||
+++ b/Makefile.PL | ||
@@ -40,8 +40,8 @@ WriteMakefile( | ||
Math::BigInt => 0, | ||
Crypt::DES => '2.03', # SNMPv3 | ||
Digest::MD5 => '2.11', # SNMPv3 | ||
- Digest::SHA1 => '1.02', # SNMPv3 | ||
- Digest::HMAC => '1.00', # SNMPv3 | ||
+ Digest::SHA => 0, # SNMPv3 | ||
+ Digest::HMAC_MD5 => '1.01', # SNMPv3 | ||
}, | ||
dist => { | ||
CI => 'ci -u -sRel -m\"Changes for $(VERSION)\"', | ||
diff --git a/lib/Net/SNMP.pm b/lib/Net/SNMP.pm | ||
index b0dfe22..0db78b1 100644 | ||
--- a/lib/Net/SNMP.pm | ||
+++ b/lib/Net/SNMP.pm | ||
@@ -3550,8 +3550,8 @@ earlier than v5.6.0. | ||
|
||
=item * | ||
|
||
-The non-core modules F<Crypt::DES>, F<Digest::MD5>, F<Digest::SHA1>, and | ||
-F<Digest::HMAC> are required to support SNMPv3. | ||
+The non-core modules F<Crypt::DES>, F<Digest::MD5>, and | ||
+F<Digest::HMAC> are required to support SNMPv3. | ||
|
||
=item * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters