]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
use OSSL_PARAM_construct_uint32 for max_early_data
authorJ.W. Jagersma <jwjagersma@gmail.com>
Thu, 10 Nov 2022 16:46:40 +0000 (17:46 +0100)
committerHugo Landau <hlandau@openssl.org>
Mon, 14 Nov 2022 07:47:54 +0000 (07:47 +0000)
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)

ssl/record/rec_layer_s3.c

index f90f639b0c0aca4884c614e523d3abf4f49a9524..2de466ac5b8135426671ea66915c4d5bb2b7ba5a 100644 (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();