mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
- Functions requiring File System functions can now be disables by undefining POLARSSL_FS_IO
This commit is contained in:
@ -225,7 +225,14 @@ int md_file( const md_info_t *md_info, const char *path, unsigned char *output )
|
||||
if( md_info == NULL )
|
||||
return 3;
|
||||
|
||||
#if defined(POLARSSL_FS_IO)
|
||||
return md_info->file_func( path, output );
|
||||
#else
|
||||
((void) path);
|
||||
((void) output);
|
||||
|
||||
return POLARSSL_ERR_MD_FEATURE_UNAVAILABLE;
|
||||
#endif
|
||||
}
|
||||
|
||||
int md_hmac_starts( md_context_t *ctx, const unsigned char *key, size_t keylen )
|
||||
|
Reference in New Issue
Block a user