mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 05:35:28 +00:00
- Bugfix for Windows in cert path handling
This commit is contained in:
parent
67820bd38e
commit
e4791f3936
|
@ -60,7 +60,9 @@
|
|||
|
||||
#if defined(POLARSSL_FS_IO)
|
||||
#include <stdio.h>
|
||||
#if !defined(_WIN32)
|
||||
#if defined(_WIN32)
|
||||
#include <strsafe.h>
|
||||
#else
|
||||
#include <sys/types.h>
|
||||
#include <dirent.h>
|
||||
#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 );
|
||||
|
|
Loading…
Reference in a new issue