aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2017-07-29 12:23:00 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2017-07-29 14:55:30 +0200
commit0443b1171da43696a2cd67cfcb0624be1e3ee25b (patch)
treefb96a1740202ff3255d8ab14157925ec3ad57f72
parent02fd47c8b0930dff9b188fd13bfb9da5e59444a8 (diff)
downloadopenssl-0443b1171da43696a2cd67cfcb0624be1e3ee25b.zip
openssl-0443b1171da43696a2cd67cfcb0624be1e3ee25b.tar.gz
openssl-0443b1171da43696a2cd67cfcb0624be1e3ee25b.tar.bz2
Add some test coverage for PEM_read_bio_PrivateKey
Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4047)
-rw-r--r--test/recipes/90-test_store.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/recipes/90-test_store.t b/test/recipes/90-test_store.t
index 699a67e..12ad951 100644
--- a/test/recipes/90-test_store.t
+++ b/test/recipes/90-test_store.t
@@ -74,7 +74,7 @@ my $n = (3 * scalar @noexist_files)
+ (4 * scalar @generated_files)
+ (scalar keys %generated_file_files)
+ (scalar @noexist_file_files)
- + 3;
+ + 4;
plan tests => $n;
@@ -83,6 +83,10 @@ indir "store_$$" => sub {
{
skip "failed initialisation", $n unless init();
+ # test PEM_read_bio_PrivateKey
+ ok(run(app(["openssl", "rsa", "-in", "rsa-key-pkcs8-pbes2-sha256.pem",
+ "-passin", "pass:password"])));
+
foreach (@noexist_files) {
my $file = srctop_file($_);
ok(!run(app(["openssl", "storeutl", $file])));