From: Arran Cudbard-Bell Date: Tue, 1 Jun 2021 23:04:39 +0000 (-0500) Subject: Enable the msg callback? X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5e2dda1c55e106604e815a536369ec0a75e4f6a;p=thirdparty%2Ffreeradius-server.git Enable the msg callback? --- diff --git a/src/lib/tls/ctx.c b/src/lib/tls/ctx.c index eaf1785d6ec..578bd8d8f4f 100644 --- a/src/lib/tls/ctx.c +++ b/src/lib/tls/ctx.c @@ -752,14 +752,6 @@ post_ca: * SSL_CTX_set_tmp_dh_callback(ctx, cbtls_dh); */ - /* - * set the message callback to identify the type of - * message. For every new session, there can be a - * different callback argument. - * - * SSL_CTX_set_msg_callback(ctx, fr_tls_session_msg_cb); - */ - #if OPENSSL_VERSION_NUMBER >= 0x10101000L /* * Set the block size for record padding. This is only @@ -768,8 +760,6 @@ post_ca: if (conf->padding_block_size) SSL_CTX_set_block_padding(ctx, conf->padding_block_size); #endif - - /* * Set eliptical curve crypto configuration. */ @@ -777,6 +767,13 @@ post_ca: if (ctx_ecdh_curve_set(ctx, conf->ecdh_curve, conf->disable_single_dh_use) < 0) goto error; #endif + + /* + * set the message callback to identify the type of + * message. For every new session, there can be a + * different callback argument. + */ + SSL_CTX_set_msg_callback(ctx, fr_tls_session_msg_cb); /* Set Info callback */ SSL_CTX_set_info_callback(ctx, fr_tls_session_info_cb);