diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-12-22 11:25:16 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-01-04 16:38:56 +0100 |
commit | 5b449de0f0a185459916a0aaff0ff1f5f87b56b9 (patch) | |
tree | c8d365e3311374a45e2720f3d3de535753e6f2ef /test/recipes | |
parent | 7736379c5c046c6fec7d41369d307db4c8702eac (diff) |
80-test_cms.t: Fix rsapssSaltlen check on MinGW
Fixes #19907
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19957)
(cherry picked from commit 55e2dd8c3162d7313d9408cb20fca8a4fe6e6f5a)
Diffstat (limited to 'test/recipes')
-rw-r--r-- | test/recipes/80-test_cms.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/recipes/80-test_cms.t b/test/recipes/80-test_cms.t index 9c96ce9bf4..610f1cbc51 100644 --- a/test/recipes/80-test_cms.t +++ b/test/recipes/80-test_cms.t @@ -775,7 +775,7 @@ sub rsapssSaltlen { my $pssparam_offset = -1; while ($_ = shift @asn1parse) { chomp; - next unless /:rsassaPss$/; + next unless /:rsassaPss/; # This line contains :rsassaPss, the next line contains a raw dump of the # RSA_PSS_PARAMS sequence; obtain its offset $_ = shift @asn1parse; @@ -801,7 +801,7 @@ sub rsapssSaltlen { # This assumes the salt length is the last field, which may possibly be # incorrect if there is a non-standard trailer field, but there almost never # is in PSS. - if ($pssparam[-1] =~ /prim:\s+INTEGER\s+:([A-Fa-f0-9]+)$/) { + if ($pssparam[-1] =~ /prim:\s+INTEGER\s+:([A-Fa-f0-9]+)/) { $saltlen = hex($1); } |