summaryrefslogtreecommitdiffstats
path: root/test/recipes
diff options
context:
space:
mode:
authorerbsland-dev <github@erbsland.dev>2024-06-19 14:02:53 +0200
committerNeil Horman <nhorman@openssl.org>2024-06-21 15:40:45 -0400
commit895ecd0ce86c17fc696ad58c9f4b2ac1b821c5d4 (patch)
treef9f8f5a4fcc615e785369491f86da458921f3f5e /test/recipes
parent7fab3c7d61b0064dcf50db39fb490970c60d9a34 (diff)
Add Test for Verification Failure on Incorrect X509 Version
Tests #5738: Introduce a new test to verify that a malformed X509 request with the version field set to version 6 fails either early when reading from data or later when `X509_REQ_verify` is called. Adding a new test recipe `60-test_x509_req.t` Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/24677)
Diffstat (limited to 'test/recipes')
-rw-r--r--test/recipes/60-test_x509_req.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/recipes/60-test_x509_req.t b/test/recipes/60-test_x509_req.t
new file mode 100644
index 0000000000..5f8b664946
--- /dev/null
+++ b/test/recipes/60-test_x509_req.t
@@ -0,0 +1,11 @@
+#! /usr/bin/env perl
+# Copyright 2024 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the Apache License 2.0 (the "License"). You may not use
+# this file except in compliance with the License. You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
+use OpenSSL::Test::Simple;
+
+simple_test("test_x509_req_test", "x509_req_test", "x509_req");