mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 23:55:43 +01:00
Introduced POLARSSL_HAVE_READDIR_R for systems without it
This commit is contained in:
parent
ff6e24710a
commit
9ccb2116a7
@ -1,5 +1,9 @@
|
||||
PolarSSL ChangeLog
|
||||
|
||||
= Branch 1.2
|
||||
Changes
|
||||
* Introduced POLARSSL_HAVE_READDIR_R for systems without it
|
||||
|
||||
= Version 1.2.10 released 2013-10-07
|
||||
Changes
|
||||
* Changed RSA blinding to a slower but thread-safe version
|
||||
|
@ -94,6 +94,17 @@
|
||||
*
|
||||
#define POLARSSL_HAVE_SSE2
|
||||
*/
|
||||
|
||||
/**
|
||||
* \def POLARSSL_HAVE_READDIR_R
|
||||
*
|
||||
* (Non Windows) System has readdir_r().
|
||||
*
|
||||
* Required for x509_crt_parse_path() in non-Windows systems.
|
||||
*
|
||||
* Comment if your system does not have support.
|
||||
*/
|
||||
#define POLARSSL_HAVE_READDIR_R
|
||||
/* \} name */
|
||||
|
||||
/**
|
||||
|
@ -1948,6 +1948,7 @@ int x509parse_crtpath( x509_cert *chain, const char *path )
|
||||
cleanup:
|
||||
FindClose( hFind );
|
||||
#else
|
||||
#if defined(POLARSSL_HAVE_READDIR_R)
|
||||
int t_ret, i;
|
||||
struct stat sb;
|
||||
struct dirent entry, *result = NULL;
|
||||
@ -1984,7 +1985,12 @@ cleanup:
|
||||
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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user