mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Introduced POLARSSL_HAVE_READDIR_R for systems without it
This commit is contained in:
@ -986,7 +986,8 @@ int x509_crt_parse_path( x509_crt *chain, const char *path )
|
||||
ret = POLARSSL_ERR_X509_FILE_IO_ERROR;
|
||||
|
||||
FindClose( hFind );
|
||||
#else
|
||||
#else /* _WIN32 */
|
||||
#if defined(POLARSSL_HAVE_READDIR_R)
|
||||
int t_ret, i;
|
||||
struct stat sb;
|
||||
struct dirent entry, *result = NULL;
|
||||
@ -1023,7 +1024,12 @@ int x509_crt_parse_path( x509_crt *chain, const char *path )
|
||||
ret += t_ret;
|
||||
}
|
||||
closedir( dir );
|
||||
#endif
|
||||
#else /* POLARSSL_HAVE_READDIR_R */
|
||||
((void) chain);
|
||||
((void) path);
|
||||
ret = POLARSSL_ERR_X509_FEATURE_UNAVAILABLE;
|
||||
#endif /* POLARSSL_HAVE_READDIR_R */
|
||||
#endif /* _WIN32 */
|
||||
|
||||
return( ret );
|
||||
}
|
||||
|
Reference in New Issue
Block a user