From: Matt Caswell Date: Tue, 23 Aug 2022 13:45:32 +0000 (+0100) Subject: Fix the return type for the rlayer_skip_early_data callback X-Git-Tag: openssl-3.2.0-alpha1~2171 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e921882d57201e14cc6a48765b2281065d6f5c65;p=thirdparty%2Fopenssl.git Fix the return type for the rlayer_skip_early_data callback There was a copy & paste error in the definition of the rlayer_skip_early_data callback. The return type is supposed to be "int" but it was defined as a pointer type. This was causing test failures on some platforms. Fixes #19037 Reviewed-by: Tomas Mraz Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/19048) --- diff --git a/ssl/record/record.h b/ssl/record/record.h index 0d2f0adf3ec..a9d7f752cf4 100644 --- a/ssl/record/record.h +++ b/ssl/record/record.h @@ -258,7 +258,7 @@ int ssl_set_new_record_layer(SSL_CONNECTION *s, int version, int direction, const SSL_COMP *comp); # define OSSL_FUNC_RLAYER_SKIP_EARLY_DATA 1 -OSSL_CORE_MAKE_FUNC(const OSSL_PARAM *, rlayer_skip_early_data, (void *cbarg)) +OSSL_CORE_MAKE_FUNC(int, rlayer_skip_early_data, (void *cbarg)) # define OSSL_FUNC_RLAYER_MSG_CALLBACK 2 OSSL_CORE_MAKE_FUNC(void, rlayer_msg_callback, (int write_p, int version, int content_type,