mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-12 09:54:38 +08:00
x509_crt: Removed checks for windows versions < WINXP
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
parent
fac45fbafe
commit
40995e1390
@ -1536,7 +1536,6 @@ int mbedtls_x509_crt_parse_path(mbedtls_x509_crt *chain, const char *path)
|
|||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
|
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
|
||||||
#if _WIN32_WINNT >= 0x0501 /* _WIN32_WINNT_XP */
|
|
||||||
int w_ret;
|
int w_ret;
|
||||||
WCHAR szDir[MAX_PATH];
|
WCHAR szDir[MAX_PATH];
|
||||||
char filename[MAX_PATH];
|
char filename[MAX_PATH];
|
||||||
@ -1616,9 +1615,6 @@ int mbedtls_x509_crt_parse_path(mbedtls_x509_crt *chain, const char *path)
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
FindClose(hFind);
|
FindClose(hFind);
|
||||||
#else /* !_WIN32_WINNT_XP */
|
|
||||||
#error "mbedtls_x509_crt_parse_path not available before Windows XP"
|
|
||||||
#endif /* !_WIN32_WINNT_XP */
|
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
int t_ret;
|
int t_ret;
|
||||||
int snp_ret;
|
int snp_ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user