mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
- Functions requiring File System functions can now be disables by undefining POLARSSL_FS_IO
This commit is contained in:
parent
15566e4396
commit
335db3f121
26 changed files with 306 additions and 152 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue