From d922634d0c63cee01c89869d79306cd2df628855 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 16 Nov 2016 23:04:14 +0000 Subject: [PATCH] Add conversion test for MSBLOB format. Reviewed-by: Rich Salz --- test/recipes/15-test_dsa.t | 4 ++-- test/recipes/15-test_rsa.t | 2 +- test/recipes/tconversion.pl | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/recipes/15-test_dsa.t b/test/recipes/15-test_dsa.t index bf3b0d376a..2fd236e875 100644 --- a/test/recipes/15-test_dsa.t +++ b/test/recipes/15-test_dsa.t @@ -34,7 +34,7 @@ ok(run(test(["dsatest", "-app2_1"])), "running dsatest -app2_1"); tconversion("dsa", srctop_file("test","testdsa.pem"), "pkey"); }; subtest 'dsa conversions -- public key' => sub { - tconversion("dsa", srctop_file("test","testdsapub.pem"), "dsa", - "-pubin", "-pubout"); + tconversion("msb", srctop_file("test","testdsapub.pem"), "dsa", + "-pubin", "-pubout"); }; } diff --git a/test/recipes/15-test_rsa.t b/test/recipes/15-test_rsa.t index cb1172a95f..a57ce63a90 100644 --- a/test/recipes/15-test_rsa.t +++ b/test/recipes/15-test_rsa.t @@ -35,7 +35,7 @@ ok(run(app([ 'openssl', 'rsa', '-check', '-in', srctop_file('test', 'testrsa.pem tconversion("rsa", srctop_file("test","testrsa.pem"), "pkey"); }; subtest 'rsa conversions -- public key' => sub { - tconversion("rsa", srctop_file("test","testrsapub.pem"), "rsa", + tconversion("msb", srctop_file("test","testrsapub.pem"), "rsa", "-pubin", "-pubout"); }; } diff --git a/test/recipes/tconversion.pl b/test/recipes/tconversion.pl index 1655cd483f..1a308e20b8 100644 --- a/test/recipes/tconversion.pl +++ b/test/recipes/tconversion.pl @@ -19,6 +19,7 @@ my %conversionforms = ( # Default conversion forms. Other series may be added with # specific test types as key. "*" => [ "d", "p" ], + "msb" => [ "d", "p", "msblob" ], ); sub tconversion { my $testtype = shift; -- 2.25.1