From 2b6af2fbf0bc34721d286ae3adcaf2a32a873d80 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Tue, 23 Oct 2012 11:08:02 +0000
Subject: [PATCH] - Only define mpi_read_file and mpi_write_file if
POLARSSL_FS_IO is present
---
include/polarssl/bignum.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/polarssl/bignum.h b/include/polarssl/bignum.h
index b4a6c0637..e2d93476d 100644
--- a/include/polarssl/bignum.h
+++ b/include/polarssl/bignum.h
@@ -299,6 +299,7 @@ int mpi_read_string( mpi *X, int radix, const char *s );
*/
int mpi_write_string( const mpi *X, int radix, char *s, size_t *slen );
+#if defined(POLARSSL_FS_IO)
/**
* \brief Read X from an opened file
*
@@ -325,6 +326,7 @@ int mpi_read_file( mpi *X, int radix, FILE *fin );
* \note Set fout == NULL to print X on the console.
*/
int mpi_write_file( const char *p, const mpi *X, int radix, FILE *fout );
+#endif /* POLARSSL_FS_IO */
/**
* \brief Import X from unsigned binary data, big endian