diff options
author | Paul Bakker <p.j.bakker@polarssl.org> | 2011-04-25 15:28:35 +0000 |
---|---|---|
committer | Paul Bakker <p.j.bakker@polarssl.org> | 2011-04-25 15:28:35 +0000 |
commit | 335db3f121053e5e5286fb5e8b1c75dfb5129aa9 (patch) | |
tree | f0eac52a93791e997f99440a63b99437ad745e7a /library/md4.c | |
parent | 15566e43963bf569dd8142ee8ca354e8019d8f81 (diff) | |
download | mbedtls-335db3f121053e5e5286fb5e8b1c75dfb5129aa9.zip mbedtls-335db3f121053e5e5286fb5e8b1c75dfb5129aa9.tar.gz mbedtls-335db3f121053e5e5286fb5e8b1c75dfb5129aa9.tar.bz2 |
- Functions requiring File System functions can now be disables by undefining POLARSSL_FS_IO
Diffstat (limited to 'library/md4.c')
-rw-r--r-- | library/md4.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/library/md4.c b/library/md4.c index 3694899..2b5fcff 100644 --- a/library/md4.c +++ b/library/md4.c @@ -35,7 +35,9 @@ #include "polarssl/md4.h" +#if defined(POLARSSL_FS_IO) || defined(POLARSSL_SELF_TEST) #include <stdio.h> +#endif /* * 32-bit integer manipulation macros (little endian) @@ -271,6 +273,7 @@ void md4( const unsigned char *input, size_t ilen, unsigned char output[16] ) memset( &ctx, 0, sizeof( md4_context ) ); } +#if defined(POLARSSL_FS_IO) /* * output = MD4( file contents ) */ @@ -302,6 +305,7 @@ int md4_file( const char *path, unsigned char output[16] ) fclose( f ); return( 0 ); } +#endif /* POLARSSL_FS_IO */ /* * MD4 HMAC context setup |