- Functions requiring File System functions can now be disables by undefining POLARSSL_FS_IO
diff --git a/library/md5.c b/library/md5.c
index f379992..a7faa8d 100644
--- a/library/md5.c
+++ b/library/md5.c
@@ -34,7 +34,9 @@
#include "polarssl/md5.h"
+#if defined(POLARSSL_FS_IO) || defined(POLARSSL_SELF_TEST)
#include <stdio.h>
+#endif
/*
* 32-bit integer manipulation macros (little endian)
@@ -290,6 +292,7 @@
memset( &ctx, 0, sizeof( md5_context ) );
}
+#if defined(POLARSSL_FS_IO)
/*
* output = MD5( file contents )
*/
@@ -321,6 +324,7 @@
fclose( f );
return( 0 );
}
+#endif /* POLARSSL_FS_IO */
/*
* MD5 HMAC context setup