aboutsummaryrefslogtreecommitdiffstats
path: root/test/p_test.c
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearMatt Caswell2020-04-231-1/+1
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11616)
* Add test for providers exposing OSSL_FUNC_PROVIDER_GET_REASON_STRINGSNicola Tuveri2020-03-301-0/+13
| | | | | | | | | This test currently fails, next commit has the description of the bug and the fix. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11427)
* Rename provider and core get_param_types functionsRichard Levitte2019-08-151-6/+6
| | | | | | | | | | | | | | It was argued that names like SOMETHING_set_param_types were confusing, and a rename has been proposed to SOMETHING_settable_params, and by consequence, SOMETHING_get_param_types is renamed SOMETHING_gettable_params. This changes implements this change for the dispatched provider and core functions. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/9591)
* Replace OSSL_ITEM with OSSL_PARAM as parameter descriptor, everywhereRichard Levitte2019-07-231-4/+4
| | | | | Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9346)
* test/p_test.c: silence -Wstringop-overflowPatrick Steuer2019-07-021-1/+1
| | | | | | | Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9282)
* Change OSSL_PARAM return size to not be a pointer.Pauli2019-06-241-8/+8
| | | | | | | | Instead of referencing the return size from the OSSL_PARAM structure, make the size a field within the structure. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9135)
* p_get_params() [test/p_test.c]: clear the OSSL_PARAM buffers for every testRichard Levitte2019-05-011-4/+6
| | | | | | | Fixes #8796 Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8851)
* Replumbing: give the possibility for the provider to create a contextRichard Levitte2019-04-301-3/+12
| | | | | | | | | | | | | | | OSSL_provider_init() gets another output parameter, holding a pointer to a provider side context. It's entirely up to the provider to define the context and what it's being used for. This pointer is passed back to other provider functions, typically the provider global get_params and set_params functions, and also the diverse algorithm context creators, and of course, the teardown function. With this, a provider can be instantiated more than once, or be re-loaded as the case may be, while maintaining instance state. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8848)
* Add test for the provider configuration moduleRichard Levitte2019-04-031-4/+16
| | | | | | | | | | | | We reuse test/provider_internal_test.c and test/p_test.c, and get it loaded one more time via the configuration file test/provider_internal_test.conf To support different platform standards regarding module extensions, we generate test/provider_internal_test.conf Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/8549)
* Change OSSL_PARAM_UTF8_STRING_PTR to OSSL_PARAM_UTF8_PTRRichard Levitte2019-03-121-2/+2
| | | | | | | In unrelated code Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8451)
* Rename 'buffer' to 'data' in OSSL_PARAMRichard Levitte2019-03-121-4/+4
| | | | | | | | | | The OSSL_PARAM attribute names |buffer| and |buffer_size| may lead to confusion, as they may make some think that the memory pointed at is an intermediate memory are. This is not generally the case, so we rename |buffer| and |buffer_size| to |data| and |data_size| Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8451)
* Add provider testsRichard Levitte2019-03-111-0/+110
Two tests are added, one that tests the internal API, the other tests the public API. Those two tests both test the same provider, which acts both as a built-in provider and as a loadable provider module. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/8287)