From 593cb77e51fca4958f94a6ddf03b816216b5e960 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Wed, 17 Apr 2024 22:44:13 +1000 Subject: [PATCH] ssl_misc.c: wolfssl_file_len() protection wolfssl_file_len is now used by wolfssl_read_file_static() which is compiled in with less restrictions. Fix #ifdef protection. --- src/ssl_misc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ssl_misc.c b/src/ssl_misc.c index 9dd30b256..397dba6b2 100644 --- a/src/ssl_misc.c +++ b/src/ssl_misc.c @@ -208,9 +208,7 @@ static int wolfssl_read_bio(WOLFSSL_BIO* bio, char** data, int* dataSz, #endif /* OPENSSL_EXTRA && !WOLFCRYPT_ONLY */ #if (defined(OPENSSL_EXTRA) || defined(PERSIST_CERT_CACHE) || \ - (!defined(NO_CERTS) && (!defined(NO_WOLFSSL_CLIENT) || \ - !defined(WOLFSSL_NO_CLIENT_AUTH)))) && !defined(WOLFCRYPT_ONLY) && \ - !defined(NO_FILESYSTEM) + !defined(NO_CERTS)) && !defined(WOLFCRYPT_ONLY) && !defined(NO_FILESYSTEM) /* Read all the data from a file. * * @param [in] fp File pointer to read with.