openssl/test/testutil
Pauli 7ffbd7ca96 OSSL_PARAM helper functions.
Provide a number of functions to allow parameters to be set and
retrieved in a type safe manner.  Functions are provided for many
integral types plus double, BIGNUM, UTF8 strings and OCTET strings.

All of the integer functions will widen the parameter data as
required.  This permits a degree of malleability in the parameter
definition.  For example a type can be changed from a thirty two bit
integer to a sixty four bit one without changing application code.
Only four and eight byte integral sizes are supported here.

A pair of real functions are available for doubles.

A pair of functions is available for BIGNUMs.  These accept any sized
unsigned integer input and convert to/from a BIGNUM.

For each OCTET and UTF8 strings, four functions are defined.  This
provide get and set functionality for string and for pointers to
strings.  The latter avoiding copies but have other inherent risks.

Finally, some utility macros and functions are defined to allow
OSSL_PARAM definition arrays to be specified in a simple manner.
There are two macro and one function for most types.  The exception
being BIGNUM, for which there is one macro and one function.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8451)
2019-03-12 19:12:12 +01:00
..
apps_mem.c testutil: ensure good treatment of argv on non-Unix platforms 2019-03-05 08:53:19 +01:00
basic_output.c Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
cb.c Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
driver.c testutil: ensure good treatment of argv on non-Unix platforms 2019-03-05 08:53:19 +01:00
format_output.c Add a format attribute to the format functions and fix the broken format 2018-12-09 22:02:50 -05:00
init.c Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
main.c Updated test command line parsing to support commmon commands 2019-02-11 15:31:51 +01:00
options.c Updated test command line parsing to support commmon commands 2019-02-11 15:31:51 +01:00
output.h Add a format attribute to the format functions and fix the broken format 2018-12-09 22:02:50 -05:00
output_helpers.c Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
stanza.c Use a const variable 2018-12-09 22:02:50 -05:00
tap_bio.c don't pass const string where a modifyable string is expected 2018-12-09 22:02:49 -05:00
test_cleanup.c Following the license change, modify the boilerplates in test/ 2018-12-06 14:19:22 +01:00
test_options.c Updated test command line parsing to support commmon commands 2019-02-11 15:31:51 +01:00
tests.c OSSL_PARAM helper functions. 2019-03-12 19:12:12 +01:00
tu_local.h Updated test command line parsing to support commmon commands 2019-02-11 15:31:51 +01:00