- Functions requiring File System functions can now be disables by undefining POLARSSL_FS_IO
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 @@
memset( &ctx, 0, sizeof( md4_context ) );
}
+#if defined(POLARSSL_FS_IO)
/*
* output = MD4( file contents )
*/
@@ -302,6 +305,7 @@
fclose( f );
return( 0 );
}
+#endif /* POLARSSL_FS_IO */
/*
* MD4 HMAC context setup