Codebase list openssl / adedec5
Import 1.1.1n Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Sebastian Andrzej Siewior 2 years ago
2 changed file(s) with 16 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
0 openssl (1.1.1o-1) UNRELEASED; urgency=medium
1
2 * New upstream version.
3 - CVE-2022-1292 (The c_rehash script allows command injection).
4
5 -- Sebastian Andrzej Siewior <sebastian@breakpoint.cc> Thu, 05 May 2022 07:32:45 +0200
6
07 openssl (1.1.1n-1) unstable; urgency=medium
18
29 * New upstream version.
66 1 file changed, 14 insertions(+), 6 deletions(-)
77
88 diff --git a/tools/c_rehash.in b/tools/c_rehash.in
9 index fa7c6c9fef91..a7e538a72d7d 100644
9 index cfd18f5da110..77c3109ef784 100644
1010 --- a/tools/c_rehash.in
1111 +++ b/tools/c_rehash.in
1212 @@ -17,8 +17,6 @@ my $prefix = {- quotify1($config{prefix}) -};
4040 }
4141 }
4242
43 @@ -161,6 +158,7 @@ sub check_file {
43 @@ -178,6 +175,7 @@ sub compute_hash {
4444
4545 sub link_hash_cert {
4646 my $fname = $_[0];
4747 + my $x509hash = $_[1] || '-subject_hash';
48 $fname =~ s/\"/\\\"/g;
49 my ($hash, $fprint) = `"$openssl" x509 $x509hash -fingerprint -noout -in "$fname"`;
50 chomp $hash;
51 @@ -198,10 +196,20 @@ sub link_hash_cert {
48 my ($hash, $fprint) = compute_hash($openssl, "x509", $x509hash,
49 "-fingerprint", "-noout",
50 "-in", $fname);
51 @@ -217,10 +215,20 @@ sub link_hash_cert {
5252 $hashlist{$hash} = $fprint;
5353 }
5454
6666 sub link_hash_crl {
6767 my $fname = $_[0];
6868 + my $crlhash = $_[1] || "-hash";
69 $fname =~ s/'/'\\''/g;
70 my ($hash, $fprint) = `"$openssl" crl $crlhash -fingerprint -noout -in '$fname'`;
71 chomp $hash;
69 my ($hash, $fprint) = compute_hash($openssl, "crl", $crlhash,
70 "-fingerprint", "-noout",
71 "-in", $fname);