diff options
author | J.W. Jagersma <jwjagersma@gmail.com> | 2022-11-10 17:46:40 +0100 |
---|---|---|
committer | Hugo Landau <hlandau@openssl.org> | 2022-11-14 07:47:54 +0000 |
commit | 1e065a15119520e13a2d68d003c4c06869208a32 (patch) | |
tree | 1c90f18143e1393fae73817d90079a886d3b1b28 /ssl | |
parent | b9179ae5552ab59fa46bad5721125a84c76f8ab4 (diff) |
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)
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/record/rec_layer_s3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index f90f639b0c..2de466ac5b 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(); |