From: Tomas Mraz Date: Tue, 27 Apr 2021 09:49:44 +0000 (+0200) Subject: Add test case for openssl crl -noout -hash output X-Git-Tag: openssl-3.0.0-alpha16~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c404e4fab3b4497a2d04bc9c171c5460b940bf91;p=thirdparty%2Fopenssl.git Add test case for openssl crl -noout -hash output Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/15044) --- diff --git a/test/recipes/25-test_crl.t b/test/recipes/25-test_crl.t index 128ad116ff4..a17383f043b 100644 --- a/test/recipes/25-test_crl.t +++ b/test/recipes/25-test_crl.t @@ -15,7 +15,7 @@ use OpenSSL::Test qw/:DEFAULT srctop_file/; setup("test_crl"); -plan tests => 7; +plan tests => 8; require_ok(srctop_file('test','recipes','tconversion.pl')); @@ -35,6 +35,9 @@ ok(compare1stline([qw{openssl crl -noout -fingerprint -in}, ok(compare1stline([qw{openssl crl -noout -fingerprint -sha256 -in}, srctop_file('test', 'testcrl.pem')], 'SHA2-256 Fingerprint=B3:A9:FD:A7:2E:8C:3D:DF:D0:F1:C3:1A:96:60:B5:FD:B0:99:7C:7F:0E:E4:34:F5:DB:87:62:36:BC:F1:BC:1B')); +ok(compare1stline([qw{openssl crl -noout -hash -in}, + srctop_file('test', 'testcrl.pem')], + '106cd822')); ok(run(app(["openssl", "crl", "-text", "-in", $pem, "-out", $out, "-nameopt", "utf8"])));