summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorShane Lontis <shane.lontis@oracle.com>2021-03-09 17:27:55 +1000
committerShane Lontis <shane.lontis@oracle.com>2021-03-11 07:57:36 +1000
commit7a45d51ce3268d16409405b9d54d7b4bb77a7fc3 (patch)
tree3ed6e0451af6ed350eec65183113788b0797d7cd /test
parenta30823c80f8c1f4ac22fb358cab65ce4e81a5046 (diff)
Use BIO_f_readbuffer() in the decoder to support stdin.
Fixes #13185 Fixes #13352 Removed the existing code in file_store that was trying to figure out the input type. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/14407)
Diffstat (limited to 'test')
-rw-r--r--test/recipes/20-test_dhparam.t6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/recipes/20-test_dhparam.t b/test/recipes/20-test_dhparam.t
index 9bd947b0ee..78a63508b3 100644
--- a/test/recipes/20-test_dhparam.t
+++ b/test/recipes/20-test_dhparam.t
@@ -19,7 +19,7 @@ setup("test_dhparam");
plan skip_all => "DH is not supported in this build"
if disabled("dh");
-plan tests => 16;
+plan tests => 17;
sub checkdhparams {
my $file = shift; #Filename containing params
@@ -171,3 +171,7 @@ SKIP: {
checkdhparams("gen-x942-0-512.der", "X9.42", 0, "DER", 512);
};
}
+
+ok(run(app(["openssl", "dhparam", "-noout", "-text"],
+ stdin => data_file("pkcs3-2-1024.pem"))),
+ "stdinbuffer input test that uses BIO_gets");