]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Fix the return type for the rlayer_skip_early_data callback
authorMatt Caswell <matt@openssl.org>
Tue, 23 Aug 2022 13:45:32 +0000 (14:45 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 23 Aug 2022 16:03:31 +0000 (17:03 +0100)
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 <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/19048)

ssl/record/record.h

index 0d2f0adf3ec8ee64162360e60a0d0f41cb28a95f..a9d7f752cf40ca050cffdae67a9433024a3ca789 100644 (file)
@@ -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,