From e4791f39364a143eefd94154b2cee91711ceb07c Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Mon, 4 Jun 2012 21:29:15 +0000 Subject: [PATCH] - Bugfix for Windows in cert path handling --- library/x509parse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/x509parse.c b/library/x509parse.c index 4234dfc06..883ea251e 100644 --- a/library/x509parse.c +++ b/library/x509parse.c @@ -60,7 +60,9 @@ #if defined(POLARSSL_FS_IO) #include -#if !defined(_WIN32) +#if defined(_WIN32) +#include +#else #include #include #endif @@ -1883,7 +1885,7 @@ int x509parse_crtpath( x509_cert *chain, const char *path ) do { - if( file_data.dwAttributes & FILE_ATTRIBUTE_DIRECTORY ) + if( file_data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY ) continue; t_ret = x509parse_crtfile( chain, entry_name );