From 31ea4b388c773f275d97e6038918b89ec79b576c Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 6 Apr 2020 10:33:16 -0700 Subject: [PATCH] Fix for building with `NO_WOLFSSL_DIR` when compatibility layer is enabled. ZD 10117. --- src/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 src/ssl.c diff --git a/src/ssl.c b/src/ssl.c old mode 100644 new mode 100755 index 92e8b78dd..00116ca43 --- a/src/ssl.c +++ b/src/ssl.c @@ -28430,7 +28430,7 @@ WOLFSSL_API WOLFSSL_EVP_PKEY *wolfSSL_PEM_read_PrivateKey(XFILE fp, WOLFSSL_EVP_ #endif #endif -#if !defined(NO_FILESYSTEM) +#if !defined(NO_FILESYSTEM) && !defined(NO_WOLFSSL_DIR) /* Loads certificate(s) files in pem format into X509_STORE struct from either * a file or directory. * Returns WOLFSSL_SUCCESS on success or WOLFSSL_FAILURE if an error occurs. @@ -28530,7 +28530,7 @@ WOLFSSL_API int wolfSSL_X509_STORE_load_locations(WOLFSSL_X509_STORE *str, return ret; } -#endif +#endif /* !NO_FILESYSTEM && !NO_WOLFSSL_DIR */ #ifndef NO_WOLFSSL_STUB /*** TBD ***/