summaryrefslogtreecommitdiffstats
path: root/providers/fips/fipsprov.c
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2021-01-24 17:45:57 +0100
committerRichard Levitte <levitte@openssl.org>2021-01-26 15:57:24 +0100
commit1395a84e48e1369939ff47ca54163a210a0de4e8 (patch)
tree1057360f0561f2093d95a8115d36a88b855ae387 /providers/fips/fipsprov.c
parentDOC: Fix a few minor issues in OSSL_ENCODER / OSSL_DECODER docs (diff)
downloadopenssl-1395a84e48e1369939ff47ca54163a210a0de4e8.tar.xz
openssl-1395a84e48e1369939ff47ca54163a210a0de4e8.zip
params: OSSL_PARAM_utf8_ptr: don't automatically reference `address`
Since the pointer can be later be modified, the caller should have the responsibility to supply the address of that. Signed-off-by: Daiki Ueno <dueno@redhat.com> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/13951)
Diffstat (limited to 'providers/fips/fipsprov.c')
-rw-r--r--providers/fips/fipsprov.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/providers/fips/fipsprov.c b/providers/fips/fipsprov.c
index f59c2c1c91..990b69ef34 100644
--- a/providers/fips/fipsprov.c
+++ b/providers/fips/fipsprov.c
@@ -117,25 +117,25 @@ static const OSSL_PARAM fips_param_types[] = {
static OSSL_PARAM core_params[] =
{
OSSL_PARAM_utf8_ptr(OSSL_PROV_PARAM_CORE_MODULE_FILENAME,
- selftest_params.module_filename,
+ &selftest_params.module_filename,
sizeof(selftest_params.module_filename)),
OSSL_PARAM_utf8_ptr(OSSL_PROV_FIPS_PARAM_MODULE_MAC,
- selftest_params.module_checksum_data,
+ &selftest_params.module_checksum_data,
sizeof(selftest_params.module_checksum_data)),
OSSL_PARAM_utf8_ptr(OSSL_PROV_FIPS_PARAM_INSTALL_MAC,
- selftest_params.indicator_checksum_data,
+ &selftest_params.indicator_checksum_data,
sizeof(selftest_params.indicator_checksum_data)),
OSSL_PARAM_utf8_ptr(OSSL_PROV_FIPS_PARAM_INSTALL_STATUS,
- selftest_params.indicator_data,
+ &selftest_params.indicator_data,
sizeof(selftest_params.indicator_data)),
OSSL_PARAM_utf8_ptr(OSSL_PROV_FIPS_PARAM_INSTALL_VERSION,
- selftest_params.indicator_version,
+ &selftest_params.indicator_version,
sizeof(selftest_params.indicator_version)),
OSSL_PARAM_utf8_ptr(OSSL_PROV_FIPS_PARAM_CONDITIONAL_ERRORS,
- selftest_params.conditional_error_check,
+ &selftest_params.conditional_error_check,
sizeof(selftest_params.conditional_error_check)),
OSSL_PARAM_utf8_ptr(OSSL_PROV_FIPS_PARAM_SECURITY_CHECKS,
- fips_security_check_option,
+ &fips_security_check_option,
sizeof(fips_security_check_option)),
OSSL_PARAM_END
};