summaryrefslogtreecommitdiffstats
path: root/test/recipes/04-test_param_build.t
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2019-07-17 16:59:09 +1000
committerPauli <paul.dale@oracle.com>2019-07-17 16:59:09 +1000
commit3c93fbacf6f5abd63e1d1763e7da537ed87f2a5d (patch)
tree7be0c84f7781c3c2f6998bb88f955cb46010c593 /test/recipes/04-test_param_build.t
parent4bd8b24045e1b044a2696b0675a9120ac0384567 (diff)
Parameter building utilities.
A fuller implementation of PARAMS_TEMPLATE as per #9266 but renamed. This introduces a statis data type which can be used to constructor a description of a parameter array. It can then be converted into a OSSL_PARAM array and the allocated storage freed by a single call to OPENSSL_free. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9305)
Diffstat (limited to 'test/recipes/04-test_param_build.t')
-rw-r--r--test/recipes/04-test_param_build.t15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/recipes/04-test_param_build.t b/test/recipes/04-test_param_build.t
new file mode 100644
index 0000000000..b9846c5204
--- /dev/null
+++ b/test/recipes/04-test_param_build.t
@@ -0,0 +1,15 @@
+#! /usr/bin/env perl
+# Copyright 2019 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 strict;
+use OpenSSL::Test;
+use OpenSSL::Test::Simple;
+
+setup("test_param_build");
+
+simple_test("test_param_build", "param_build_test");