Allow enabling of dummy error_strerror() to support some use-cases
Enable a dummy error function to make use of error_strerror() in
third party libraries easier.
Disable if you run into name conflicts and want to really remove the
error_strerror()
(cherry picked from commit 8fe40dcd7d3b46193f74032361efb674112ee9e5)
Conflicts:
ChangeLog
programs/util/strerror.c
diff --git a/include/polarssl/config.h b/include/polarssl/config.h
index bb2e232..110e3b4 100644
--- a/include/polarssl/config.h
+++ b/include/polarssl/config.h
@@ -139,6 +139,17 @@
#define POLARSSL_DEBUG_MSG
/**
+ * \def POLARSSL_ERROR_STRERROR_DUMMY
+ *
+ * Enable a dummy error function to make use of error_strerror() in
+ * third party libraries easier.
+ *
+ * Disable if you run into name conflicts and want to really remove the
+ * error_strerror()
+ */
+#define POLARSSL_ERROR_STRERROR_DUMMY
+
+/**
* \def POLARSSL_GENPRIME
*
* Requires: POLARSSL_BIGNUM_C, POLARSSL_RSA_C