- Functions requiring File System functions can now be disables by undefining POLARSSL_FS_IO
diff --git a/library/md2.c b/library/md2.c
index 4daea58..de64d70 100644
--- a/library/md2.c
+++ b/library/md2.c
@@ -35,7 +35,9 @@
#include "polarssl/md2.h"
+#if defined(POLARSSL_FS_IO) || defined(POLARSSL_SELF_TEST)
#include <stdio.h>
+#endif
static const unsigned char PI_SUBST[256] =
{
@@ -175,6 +177,7 @@
memset( &ctx, 0, sizeof( md2_context ) );
}
+#if defined(POLARSSL_FS_IO)
/*
* output = MD2( file contents )
*/
@@ -206,6 +209,7 @@
fclose( f );
return( 0 );
}
+#endif /* POLARSSL_FS_IO */
/*
* MD2 HMAC context setup