File: crypt-optenssl-rsa-0.30_sha1.patch

package info (click to toggle)
libnet-oauth-perl 0.28-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 336 kB
  • sloc: perl: 1,482; makefile: 8
file content (23 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: set digest explicitly
 Crypt::OpenSSL::RSA changed its default to sha256 in 0.29_01.
 Cf. https://github.com/toddr/Crypt-OpenSSL-RSA/commit/13df4d34e7cbc9d067f863ddb94260a26df3c9e6
Origin: vendor
Bug-Debian: https://bugs.debian.org/898198
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2018-05-08
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=125291
Bug: https://rt.cpan.org/Ticket/Display.html?id=125291

--- a/t/02-rsa.t
+++ b/t/02-rsa.t
@@ -26,6 +26,10 @@
     $publickey = Crypt::OpenSSL::RSA->new_public_key(slurp("t/rsakey.pub"));
     } or die "unable to read public key";
 
+    # Crypt::OpenSSL::RSA changed its default to sha256 in 0.29_01
+    $privkey->use_sha1_hash;
+    $publickey->use_sha1_hash;
+
     my $request = Net::OAuth::ProtectedResourceRequest->new(
             consumer_key => 'dpf43f3p2l4k3l03',
             consumer_secret => 'kd94hf93k423kf44',