Bob Beck
2fab90bb5e
4.0-POST-CLANG-FORMAT-WEBKIT
...
Reviewed-by: Saša Nedvědický <sashan@openssl.org >
Reviewed-by: Neil Horman <nhorman@openssl.org >
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/29242 )
2025-12-09 00:28:19 -07:00
Matt Caswell
da1c088f59
Copyright year updates
...
Reviewed-by: Richard Levitte <levitte@openssl.org >
Release: yes
2023-09-07 09:59:15 +01:00
Tomas Mraz
a535e5b73f
Test that NULL BIGNUM is supported in OSSL_PARAM_BLD_push_BN()
...
Reviewed-by: Paul Dale <pauli@openssl.org >
Reviewed-by: Matt Caswell <matt@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/21945 )
2023-09-05 12:50:39 +02:00
Richard Levitte
b49cf27388
test/param_build_test.c: test zero BIGNUM
...
We also add tests where the zero bignum is the only parameter, to test what
that does with the allocated blocks that the OSSL_PARAM_BLD functionality
handles.
Reviewed-by: Paul Dale <pauli@openssl.org >
Reviewed-by: Tomas Mraz <tomas@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/20013 )
2023-01-11 23:38:13 +01:00
Matt Caswell
fecb3aae22
Update copyright year
...
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Release: yes
2022-05-03 13:34:51 +01:00
Richard Levitte
748a2967ff
TEST: Add addition OSSL_PARAM tests for signed BIGNUMs
...
Reviewed-by: Paul Dale <pauli@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/17162 )
2022-01-26 21:35:40 +01:00
Dimitris Apostolou
e304aa87b3
Fix typos
...
Reviewed-by: Tim Hudson <tjh@openssl.org >
Reviewed-by: Tomas Mraz <tomas@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/17392 )
2022-01-05 12:37:20 +01:00
x2018
1287dabd0b
fix some code with obvious wrong coding style
...
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Richard Levitte <levitte@openssl.org >
Reviewed-by: Paul Dale <pauli@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/16918 )
2021-10-28 13:10:46 +10:00
Rich Salz
6229815ab8
Use <> for #include openssl/xxx
...
Reviewed-by: Shane Lontis <shane.lontis@oracle.com >
Reviewed-by: Paul Dale <pauli@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/15468 )
2021-05-27 09:56:41 +10:00
Shane Lontis
3f883c7c83
Replace OSSL_PARAM_BLD_free_params() with OSSL_PARAM_free().
...
Reviewed-by: Paul Dale <pauli@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/14785 )
2021-04-12 16:55:30 +10:00
Shane Lontis
884314cab7
Add OSSL_PARAM_dup() and OSSL_PARAM_merge().
...
These functions are prerequisites for implementing EVP_PKEY_todata().
OSSL_PARAM_dup() is required to make a deep copy of the exported
params (since the provider export() uses a OSSL_PARAM_BLD which throws away the
data after the call), and then use OSSL_PARAM_merge() to add some additional params
that can be passed to the EVP_PKEY_todata().
Reviewed-by: Paul Dale <pauli@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/14785 )
2021-04-12 16:55:29 +10:00
Matt Caswell
3c2bdd7df9
Update copyright year
...
Reviewed-by: Tomas Mraz <tomas@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/14801 )
2021-04-08 13:04:41 +01:00
Pauli
b7dedba8b1
test: add extra secure memory test case.
...
Reviewed-by: Tomas Mraz <tomas@openssl.org >
Reviewed-by: Matt Caswell <matt@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/14782 )
2021-04-08 18:31:10 +10:00
Pauli
5fdaa38feb
params: add OSSL_PARAM helpers for time_t.
...
POSIX mandates that time_t is a signed integer but it doesn't specify the
lenght. Having wrappers lets uses ignore this.
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com >
(Merged from https://github.com/openssl/openssl/pull/11682 )
2020-06-24 20:05:41 +10:00
Pauli
4f5e206dd8
coverity 1462577: Incorrect expression
...
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org >
(Merged from https://github.com/openssl/openssl/pull/11651 )
2020-04-30 20:21:16 +10:00
Matt Caswell
33388b44b6
Update copyright year
...
Reviewed-by: Richard Levitte <levitte@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/11616 )
2020-04-23 13:55:52 +01:00
Pauli
20c98cd453
Param builder: Remove the static size limit.
...
Prior to this, the param builder had a statically sized array internally.
This changes it so that it uses a stack instead.
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com >
(Merged from https://github.com/openssl/openssl/pull/11390 )
2020-03-28 12:27:22 +10:00
Pauli
6d4e6009d2
Param build: make structures opaque.
...
Since this is public, it is best to make the underlying structure opaque.
This means converting from stack allocation to dynamic allocation for all
usages.
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com >
(Merged from https://github.com/openssl/openssl/pull/11390 )
2020-03-28 12:27:22 +10:00
Pauli
110bff618b
Param builder: make the OSSL_PARAM_BLD APIs public.
...
The catalyst for this is the difficult of passing BNs through the other
OSSL_PARAM APIs.
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com >
(Merged from https://github.com/openssl/openssl/pull/11390 )
2020-03-28 12:27:20 +10:00
Pauli
903f582016
Remove unused ossl_param_bld_to_param_ex() function.
...
The recently introduced ossl_param_bld_to_param_ex() function is only
called by the unit tests.
Reviewed-by: Matt Caswell <matt@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/11053 )
2020-02-12 19:45:42 +10:00
Pauli
ac23078b78
param_bld: add a padded BN call.
...
To aviod leaking size information when passing private value using the
OSSL_PARAM builder, a padded BN call is required.
Reviewed-by: Richard Levitte <levitte@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/10840 )
2020-01-19 10:20:06 +10:00
Pauli
7312ef3fc4
Add param builder free function.
...
This means include deallocation information in the return from
the ossl_param_bld_to_param function.
Reviewed-by: Richard Levitte <levitte@openssl.org >
(Merged from https://github.com/openssl/openssl/pull/9404 )
2019-07-19 01:14:07 +10:00
Pauli
3c93fbacf6
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 )
2019-07-17 16:59:09 +10:00