mirror of
https://github.com/openssl/openssl.git
synced 2025-03-01 19:28:10 +08:00
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:
parent
b9179ae555
commit
1e065a1511
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user