From 40995e139069015fb912f279781057ebb200a5bd Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Mon, 18 Sep 2023 11:16:47 +0100 Subject: [PATCH] x509_crt: Removed checks for windows versions < WINXP Signed-off-by: Minos Galanakis --- library/x509_crt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/x509_crt.c b/library/x509_crt.c index 8c955cb260..93381a54af 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -1536,7 +1536,6 @@ int mbedtls_x509_crt_parse_path(mbedtls_x509_crt *chain, const char *path) { int ret = 0; #if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32) -#if _WIN32_WINNT >= 0x0501 /* _WIN32_WINNT_XP */ int w_ret; WCHAR szDir[MAX_PATH]; char filename[MAX_PATH]; @@ -1616,9 +1615,6 @@ int mbedtls_x509_crt_parse_path(mbedtls_x509_crt *chain, const char *path) cleanup: FindClose(hFind); -#else /* !_WIN32_WINNT_XP */ -#error "mbedtls_x509_crt_parse_path not available before Windows XP" -#endif /* !_WIN32_WINNT_XP */ #else /* _WIN32 */ int t_ret; int snp_ret;