--- a/src/main/tls.c
+++ b/src/main/tls.c
-@@ -954,7 +954,7 @@ after_chain:
+@@ -956,7 +956,7 @@ after_chain:
}
if (vp) vp->vp_integer = state->mtu;
return state;
}
-@@ -4517,7 +4517,7 @@ post_ca:
+@@ -4515,7 +4515,7 @@ post_ca:
/*
* Callbacks, etc. for session resumption.
*/
/*
* Cache sessions on disk if requested.
*/
-@@ -4597,7 +4597,7 @@ post_ca:
+@@ -4595,7 +4595,7 @@ post_ca:
/*
* Setup session caching
*/
/*
* Create a unique context Id per EAP-TLS configuration.
*/
-@@ -4885,7 +4885,7 @@ fr_tls_server_conf_t *tls_server_conf_pa
+@@ -4883,7 +4883,7 @@ fr_tls_server_conf_t *tls_server_conf_pa
goto error;
}
#if OPENSSL_VERSION_NUMBER >= 0x30000000L
# include <openssl/provider.h>
-@@ -2998,7 +2999,7 @@ int cbtls_verify(int ok, X509_STORE_CTX
+@@ -2996,7 +2997,7 @@ int cbtls_verify(int ok, X509_STORE_CTX
int my_ok = ok;
ASN1_INTEGER *sn = NULL;
VALUE_PAIR **certs;
char **identity;
#ifdef HAVE_OPENSSL_OCSP_H
-@@ -3089,7 +3090,7 @@ int cbtls_verify(int ok, X509_STORE_CTX
+@@ -3087,7 +3088,7 @@ int cbtls_verify(int ok, X509_STORE_CTX
* Get the Expiration Date
*/
buf[0] = '\0';
if (certs && (lookup <= 1) && asn_time &&
(asn_time->length < (int) sizeof(buf))) {
memcpy(buf, (char*) asn_time->data, asn_time->length);
-@@ -3102,7 +3103,7 @@ int cbtls_verify(int ok, X509_STORE_CTX
+@@ -3100,7 +3101,7 @@ int cbtls_verify(int ok, X509_STORE_CTX
* Get the Valid Since Date
*/
buf[0] = '\0';
if (certs && (lookup <= 1) && asn_time &&
(asn_time->length < (int) sizeof(buf))) {
memcpy(buf, (char*) asn_time->data, asn_time->length);
-@@ -3666,10 +3667,12 @@ static int set_ecdh_curve(SSL_CTX *ctx,
+@@ -3664,10 +3665,12 @@ static int set_ecdh_curve(SSL_CTX *ctx,
*/
int tls_global_init(TLS_UNUSED bool spawn_flag, TLS_UNUSED bool check)
{
/*
* Initialize the index for the certificates.
-@@ -3769,6 +3772,7 @@ int tls_global_version_check(char const
+@@ -3767,6 +3770,7 @@ int tls_global_version_check(char const
*/
void tls_global_cleanup(void)
{
#if OPENSSL_VERSION_NUMBER < 0x10000000L
ERR_remove_state(0);
#elif OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
-@@ -3794,6 +3798,7 @@ void tls_global_cleanup(void)
+@@ -3792,6 +3796,7 @@ void tls_global_cleanup(void)
ERR_free_strings();
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();