use OSSL_PARAM_construct_uint32 for max_early_data

Otherwise, this causes a warning on platforms where 'uint32_t' is
defined as 'unsigned long int' instead of 'unsigned int'.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19322)
This commit is contained in:
J.W. Jagersma 2022-11-10 17:46:40 +01:00 committed by Hugo Landau
parent b9179ae555
commit 1e065a1511

View File

@ -1205,8 +1205,8 @@ int ssl_set_new_record_layer(SSL_CONNECTION *s, int version,
max_early_data = ossl_get_max_early_data(s);
if (max_early_data != 0)
*set++ = OSSL_PARAM_construct_uint(OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DATA,
&max_early_data);
*set++ = OSSL_PARAM_construct_uint32(OSSL_LIBSSL_RECORD_LAYER_PARAM_MAX_EARLY_DATA,
&max_early_data);
}
*set = OSSL_PARAM_construct_end();