From: J.W. Jagersma Date: Thu, 10 Nov 2022 16:46:40 +0000 (+0100) Subject: use OSSL_PARAM_construct_uint32 for max_early_data X-Git-Tag: openssl-3.2.0-alpha1~1751 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e065a15119520e13a2d68d003c4c06869208a32;p=thirdparty%2Fopenssl.git 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 Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19322) --- diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index f90f639b0c0..2de466ac5b8 100644 --- a/ssl/record/rec_layer_s3.c +++ b/ssl/record/rec_layer_s3.c @@ -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();