summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRich Salz <rsalz@openssl.org>2016-08-22 11:25:12 -0400
committerRich Salz <rsalz@openssl.org>2016-08-22 11:25:12 -0400
commit464d59a5bb5811f7671e2bd37f41d610606b829d (patch)
treea5483ba43dc4d4de5330cfa7407bd5ccb2bbbd4b /test
parenta66234bc86a959e628e2010687c6fdf0fdbfdac3 (diff)
RT2676: Reject RSA eponent if even or 1
Also, re-organize RSA check to use goto err. Add a test case. Try all checks, not just stopping at first (via Richard Levitte) Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'test')
-rw-r--r--test/recipes/15-test_rsa.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/recipes/15-test_rsa.t b/test/recipes/15-test_rsa.t
index 07746f47f6..cb1172a95f 100644
--- a/test/recipes/15-test_rsa.t
+++ b/test/recipes/15-test_rsa.t
@@ -16,12 +16,14 @@ use OpenSSL::Test::Utils;
setup("test_rsa");
-plan tests => 5;
+plan tests => 6;
require_ok(srctop_file('test','recipes','tconversion.pl'));
ok(run(test(["rsa_test"])), "running rsatest");
+ok(run(app([ 'openssl', 'rsa', '-check', '-in', srctop_file('test', 'testrsa.pem'), '-noout'])), "rsa -check");
+
SKIP: {
skip "Skipping rsa conversion test", 3
if disabled("rsa");