summaryrefslogtreecommitdiff
path: root/test/recipes/25-test_x509.t
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-03-02 18:55:35 +0100
committerTomas Mraz <tomas@openssl.org>2021-03-04 12:15:37 +0100
commit2c8a740a9f0d9532050ae9a386506d1135b3a24a (patch)
treec049bf01d391638830cb2332e8d30b60b3041588 /test/recipes/25-test_x509.t
parent39a61e69b88252dca8aa7d61146b0b2397d1710c (diff)
downloadopenssl-new-2c8a740a9f0d9532050ae9a386506d1135b3a24a.tar.gz
test/x509: Test for issuer being overwritten when printing.
The regression from commit 05458fd was fixed, but there is no test for that regression. This adds it simply by having a certificate that we compare for -text output having a different subject and issuer. Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/14353)
Diffstat (limited to 'test/recipes/25-test_x509.t')
-rw-r--r--test/recipes/25-test_x509.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/recipes/25-test_x509.t b/test/recipes/25-test_x509.t
index 0ef40b0b01..ae934bf420 100644
--- a/test/recipes/25-test_x509.t
+++ b/test/recipes/25-test_x509.t
@@ -29,11 +29,11 @@ my $utf = srctop_file(@certs, "cyrillic.utf8");
ok(run(app(["openssl", "x509", "-text", "-in", $pem, "-out", $out_msb,
"-nameopt", "esc_msb"])));
-is(cmp_text($out_msb, srctop_file(@certs, "cyrillic.msb")),
+is(cmp_text($out_msb, $msb),
0, 'Comparing esc_msb output with cyrillic.msb');
ok(run(app(["openssl", "x509", "-text", "-in", $pem, "-out", $out_utf8,
"-nameopt", "utf8"])));
-is(cmp_text($out_utf8, srctop_file(@certs, "cyrillic.utf8")),
+is(cmp_text($out_utf8, $utf),
0, 'Comparing utf8 output with cyrillic.utf8');
SKIP: {